]> git.wh0rd.org Git - nano.git/commitdiff
Initializing the correct variable to zero, to avoid jumpy scrolling.
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 5 Mar 2014 09:47:35 +0000 (09:47 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Wed, 5 Mar 2014 09:47:35 +0000 (09:47 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4643 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/move.c

index 4bb9ec1e0ee0a8de9381791ad1bae93fd4522cea..c55a2c4bb17f31e1993cbfbc868b0b6c571d5da9 100644 (file)
--- 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
index 542c9bb560c64efe0e7487eaf05ce514afce71f6..c87872ea2f8a8c080c83e348dbb1a41469e3cb2d 100644 (file)
@@ -564,7 +564,7 @@ void do_down(
        )
 {
 #ifndef NANO_TINY
-    int amount, enough = 0;
+    int amount = 0, enough;
     filestruct *topline;
 #endif