Commit 5050d35e authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Fixes to paging (smooth scroll) by David Lawrence Ramsey

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@788 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent ecc1933c
Showing with 6 additions and 7 deletions
+6 -7
...@@ -17,7 +17,8 @@ CVS code - ...@@ -17,7 +17,8 @@ CVS code -
- Mac file writing supported too. Flag -M, --mac. Toggle - Mac file writing supported too. Flag -M, --mac. Toggle
Meta-O (MacOS? OS-X? =-) Meta-O (MacOS? OS-X? =-)
- New smooth scroll code by Ken Tyler. New flag -S, --smooth, - New smooth scroll code by Ken Tyler. New flag -S, --smooth,
changes to page_up() and page_down(). changes to page_up() and page_down(). Fixes to paging by
David Lawrence Ramsey.
- Bracket (brace, parens, etc) matching code by Ken Tyler. - Bracket (brace, parens, etc) matching code by Ken Tyler.
New functions do_find_bracket(), changes to findnextstr(), New functions do_find_bracket(), changes to findnextstr(),
command is Meta-] (hope you dont mind since I already sold off command is Meta-] (hope you dont mind since I already sold off
......
...@@ -36,19 +36,17 @@ ...@@ -36,19 +36,17 @@
void page_down(void) void page_down(void)
{ {
if (editbot != filebot) { if (!ISSET(SMOOTHSCROLL)) {
if (!ISSET(SMOOTHSCROLL)) { if (editbot != filebot) {
edit_update(editbot->next, CENTER); edit_update(editbot->next, CENTER);
center_cursor(); center_cursor();
} else { } else {
edit_update(editbot, NONE);
}
} else {
if (!ISSET(SMOOTHSCROLL)) {
while (current != filebot) while (current != filebot)
current = current->next; current = current->next;
edit_update(current, CENTER); edit_update(current, CENTER);
} }
} else {
edit_update(editbot, NONE);
} }
update_cursor(); update_cursor();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment