]> git.wh0rd.org Git - nano.git/commitdiff
minor cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 24 Jun 2004 22:39:24 +0000 (22:39 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 24 Jun 2004 22:39:24 +0000 (22:39 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1814 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c
src/winio.c

index c6bbb451c3ebe3b595adfd874d334957a11ece0d..d8217002131f5fab5243fcb6a2801e0b1f1bb8f1 100644 (file)
@@ -2516,8 +2516,8 @@ int do_justify(int full_justify)
                        next_line_len - indent_len + 1);
                    strcpy(current->next->data + indent_len,
                        current->data + break_pos + 1);
-                   current->next->data[indent_len + line_len - break_pos - 1]
-                       = ' ';
+                   current->next->data[indent_len + line_len -
+                       break_pos - 1] = ' ';
 #ifndef NANO_SMALL
                    if (mark_beginbuf == current->next) {
                        if (mark_beginx < indent_len)
index 1fd95d30ec73a711281e6ce15fae2a9818262cd5..a01a91c975a8dc5058824f8c1b2eb963da0fe21b 100644 (file)
@@ -2338,7 +2338,8 @@ void edit_add(const filestruct *fileptr, const char *converted, int
                 * starts. */
                end_line = fileptr;
                while (end_line != NULL &&
-                       regexec(tmpcolor->end, end_line->data, 1, &endmatch, 0))
+                       regexec(tmpcolor->end, end_line->data, 1,
+                       &endmatch, 0) == REG_NOMATCH)
                    end_line = end_line->next;
 
                /* No end found, or it is too early. */