From 0e92adf153801067ffa9ac360f26af7048bf18c8 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 29 Jun 2006 15:28:39 +0000 Subject: [PATCH] in browser_refresh(), simplify the for loop git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/browser.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 321b1555..1c8a74fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,8 @@ CVS code - - Refactor and simplify the mouse support, modeling it after do_mouse() for consistency. (DLR) - Remove unneeded call to blank_edit(). (DLR) + browser_refresh() + - Simplify the for loop. (DLR) - doc/syntax/c.nanorc: - Since .i and .ii are preprocessed C and C++ output, colorize them here. (Mike Frysinger) diff --git a/src/browser.c b/src/browser.c index 2777c82b..73eaafc8 100644 --- a/src/browser.c +++ b/src/browser.c @@ -534,7 +534,7 @@ void browser_refresh(void) 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, FALSE); -- 2.39.5