Sat 03 Apr 2010 11:32:06 PM UTC, comment #3:
I'm utterly bewildered by the PageUp/PageDown scrolling behaviour of nano 2.2.3. It seems completely random. Sometimes it moves you a page down, and a page up, like it should. Sometimes it missed the mark by a few lines so PageDown-PageUp-PageDown-PageUp moved you up 6 lines. Sometimes it's so bad that PageDown only moves you down 2 lines instead of an entire page.
This happens so frequently that I can not edit code with nano anymore. Whenever I want to scroll to another part of the file, it seems like the file contents scroll by backwards, and I find myself at the top or bottom of the file, and I have to use the search function to jump back to the right place.
To test, I created a file with 1000 lines, each line being the line number so it's easy to see
for ((i=1; i < 1000; i++)) do echo $i >> foobar; done;
Then I edit this file with nano, in a standard xterm, it shows 19 lines. Cursor starts at line 1, col 1.
Using UP / DOWN / LEFT / RIGHT / PGUP / PGDN Keys x times = line, col
DOWN x15 = 16, 1 (normal)
PGDN x1 = 18, 1 (it jumped only 2 lines)
PGDN x10 = 38, 1 (it jumps only 2 lines every time)
PGUP x1 = 6, 1 (maybe normal, but it takes one pageup to cancel more than 11 pagedowns here)
PGDN x1 = 18, 1 (pagedown jumps 12 lines? normal?)
PGDN x1 = 30, 1 (again?)
PGUP x1 = 8, 1 (one pageup cancels out more than 2 pagedowns)
...etc...
Can you reproduce this with 2.2.3? Is my nano strange?
I'll downgrade for now.
|