Commit 537a8808 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

minor cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1814 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 85529b37
Showing with 4 additions and 3 deletions
+4 -3
......@@ -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)
......
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment