commit 3278f839c1e42f0d7ed129cb4989aa0c0057fad8
parent f7c68cd1434a3e4878c872934bef9b4940fd8019
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 5 Mar 2014 09:47:35 +0000
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
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-05 Benno Schulenberg <bensberg@justemail.net>
+ * src/move.c (do_down) - Initialize the correct variable to zero.
+ Solves jumpy scrolling behaviour reported by Chris Allegretta .
+
2014-03-04 Chris Allegretta <chrisa@asty.org>
* 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
@@ -564,7 +564,7 @@ void do_down(
)
{
#ifndef NANO_TINY
- int amount, enough = 0;
+ int amount = 0, enough;
filestruct *topline;
#endif