From 26dd1b66de5074092bc65b97386a0a7d6285ccdb Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 10 May 2006 04:17:21 +0000 Subject: [PATCH] simplify git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3491 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/browser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser.c b/src/browser.c index 57968e22..ccd19338 100644 --- a/src/browser.c +++ b/src/browser.c @@ -543,13 +543,13 @@ void parse_browser_input(int *kbinput, bool *meta_key, bool *func_key) void browser_refresh(void) { struct stat st; - size_t i; + size_t i = 0; int col = 0, line = 0, filecols = 0; size_t foo_len = mb_cur_max() * 7; char *foo = charalloc(foo_len + 1); - i = (width != 0) ? width * editwinrows * ((selected / width) / - editwinrows) : 0; + if (width != 0) + i = width * editwinrows * ((selected / width) / editwinrows); blank_edit(); -- 2.39.5