From 3278f839c1e42f0d7ed129cb4989aa0c0057fad8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 5 Mar 2014 09:47:35 +0000 Subject: [PATCH] Initializing the correct variable to zero, to avoid jumpy scrolling. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4643 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/move.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4bb9ec1e..c55a2c4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Benno Schulenberg + * src/move.c (do_down) - Initialize the correct variable to zero. + Solves jumpy scrolling behaviour reported by Chris Allegretta . + 2014-03-04 Chris Allegretta * global.c (first_sc_for) - Return raw keystrokes last, so they will not be displayed if there are F-key or Meta keys diff --git a/src/move.c b/src/move.c index 542c9bb5..c87872ea 100644 --- a/src/move.c +++ b/src/move.c @@ -564,7 +564,7 @@ void do_down( ) { #ifndef NANO_TINY - int amount, enough = 0; + int amount = 0, enough; filestruct *topline; #endif