diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-07-15 02:31:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-07-15 02:31:14 +0000 |
commit | a68f61848b3fc2162fdd9b78262359437bc96e10 (patch) | |
tree | dc3abc50134c0165e498e68cbe2a39a2d57ab9d8 /app-editors/nano/files | |
parent | old (diff) | |
download | gentoo-2-a68f61848b3fc2162fdd9b78262359437bc96e10.tar.gz gentoo-2-a68f61848b3fc2162fdd9b78262359437bc96e10.tar.bz2 gentoo-2-a68f61848b3fc2162fdd9b78262359437bc96e10.zip |
Fix from upstream.
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'app-editors/nano/files')
-rw-r--r-- | app-editors/nano/files/digest-nano-1.3.12-r1 | 3 | ||||
-rw-r--r-- | app-editors/nano/files/nano-1.3.12-scroll.patch | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/app-editors/nano/files/digest-nano-1.3.12-r1 b/app-editors/nano/files/digest-nano-1.3.12-r1 new file mode 100644 index 000000000000..f1444b97207b --- /dev/null +++ b/app-editors/nano/files/digest-nano-1.3.12-r1 @@ -0,0 +1,3 @@ +MD5 1450892aac7ae31d00817d42636d9a0d nano-1.3.12.tar.gz 1250777 +RMD160 f594c4805af873718828b0aedba06c1f89946458 nano-1.3.12.tar.gz 1250777 +SHA256 f5537b8a988618fa8524b6a4b0a6950184d37db983b4521ad843b98845da571c nano-1.3.12.tar.gz 1250777 diff --git a/app-editors/nano/files/nano-1.3.12-scroll.patch b/app-editors/nano/files/nano-1.3.12-scroll.patch new file mode 100644 index 000000000000..f5d533633224 --- /dev/null +++ b/app-editors/nano/files/nano-1.3.12-scroll.patch @@ -0,0 +1,39 @@ +fix from upstream + +diff -ur nano-1.3.12/src/move.c nano-1.3.12-fixed/src/move.c +--- nano-1.3.12/src/move.c 2006-05-21 22:08:49.000000000 -0400 ++++ nano-1.3.12-fixed/src/move.c 2006-07-06 17:01:03.000000000 -0400 +@@ -521,6 +521,16 @@ + + /* Scroll the edit window up one line. */ + edit_scroll(UP, 1); ++ ++ /* If we're not on the first line of the edit window, update the ++ * line we were on before and the line we're on now. The former ++ * needs to be redrawn if we're not on the first page, and the ++ * latter needs to be drawn unconditionally. */ ++ if (openfile->current_y > 0) { ++ if (need_vertical_update(0)) ++ update_line(openfile->current->next, 0); ++ update_line(openfile->current, openfile->current_x); ++ } + } + #endif /* !NANO_TINY */ + +@@ -574,6 +584,16 @@ + + /* Scroll the edit window down one line. */ + edit_scroll(DOWN, 1); ++ ++ /* If we're not on the last line of the edit window, update the line ++ * we were on before and the line we're on now. The former needs to ++ * be redrawn if we're not on the first page, and the latter needs ++ * to be drawn unconditionally. */ ++ if (openfile->current_y < editwinrows - 1) { ++ if (need_vertical_update(0)) ++ update_line(openfile->current->prev, 0); ++ update_line(openfile->current, openfile->current_x); ++ } + } + #endif /* !NANO_TINY */ + |