]> git.wh0rd.org Git - nano.git/commitdiff
fix assert
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Jun 2005 12:43:08 +0000 (12:43 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 16 Jun 2005 12:43:08 +0000 (12:43 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index 307e7bd5990f13685f38b3c64abd155d0230715b..e9035a5eb0f84758a233dfe9de411d99bcc7b937 100644 (file)
@@ -2643,7 +2643,7 @@ void justify_format(filestruct *paragraph, size_t skip)
     assert(paragraph != NULL);
     assert(paragraph->data != NULL);
     assert(skip < strlen(paragraph->data));
-    assert(!isblank(paragraph->data[skip]));
+    assert(!is_blank_mbchar(paragraph->data + skip));
 
     end = paragraph->data + skip;
     new_paragraph_data = charalloc(strlen(paragraph->data) + 1);