in browser_refresh(), simplify the for loop

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2006-06-29 15:28:39 +00:00
parent 3b722460b8
commit 0e92adf153
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ CVS code -
- Refactor and simplify the mouse support, modeling it after - Refactor and simplify the mouse support, modeling it after
do_mouse() for consistency. (DLR) do_mouse() for consistency. (DLR)
- Remove unneeded call to blank_edit(). (DLR) - Remove unneeded call to blank_edit(). (DLR)
browser_refresh()
- Simplify the for loop. (DLR)
- doc/syntax/c.nanorc: - doc/syntax/c.nanorc:
- Since .i and .ii are preprocessed C and C++ output, colorize - Since .i and .ii are preprocessed C and C++ output, colorize
them here. (Mike Frysinger) them here. (Mike Frysinger)

View File

@ -534,7 +534,7 @@ void browser_refresh(void)
wmove(edit, 0, 0); wmove(edit, 0, 0);
for (; i < filelist_len && line <= editwinrows - 1; i++) { for (; i < filelist_len && line < editwinrows; i++) {
char *disp = display_string(tail(filelist[i]), 0, longest, char *disp = display_string(tail(filelist[i]), 0, longest,
FALSE); FALSE);