cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1779 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-05-29 03:03:52 +00:00
parent 32e3b88e09
commit 9d325a03d9
2 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,8 @@ void not_found_msg(const char *str)
int numchars = actual_x(str, COLS / 2); int numchars = actual_x(str, COLS / 2);
assert(str != NULL); assert(str != NULL);
statusbar(_("\"%.*s%s\" not found"), numchars, str, str[numchars] == statusbar(_("\"%.*s%s\" not found"), numchars, str,
'\0' ? "" : "..."); str[numchars] == '\0' ? "" : "...");
} }
void search_abort(void) void search_abort(void)

View File

@ -2659,7 +2659,7 @@ void edit_refresh(void)
#endif #endif
while (nlines < editwinrows) { while (nlines < editwinrows) {
update_line(foo, (foo == current) ? current_x : 0); update_line(foo, foo == current ? current_x : 0);
nlines++; nlines++;
if (foo->next == NULL) if (foo->next == NULL)
break; break;