MakeSelectionVisible in window.c was not paying attention to wrapped lines. To
commitec3d062f2cbf4625ca95d4cf2a52a0d85af33b05
authorNathan Gray <n8gray@users.sourceforge.net>
Thu, 22 Aug 2002 08:05:26 +0000 (22 08:05 +0000)
committerNathan Gray <n8gray@users.sourceforge.net>
Thu, 22 Aug 2002 08:05:26 +0000 (22 08:05 +0000)
tree3e2108e2f9bbb8f4b74759e698f7d1c45528130b
parentc0b3cf313e0747cdd83b40694fc5457415b448f3
MakeSelectionVisible in window.c was not paying attention to wrapped lines.  To
see the problem in an older version:

1.  Open a large file and scroll to the center somewhere
2.  Enable continuous wrapping and resize window so lots of lines wrap
3.  Select a word and make a mark with Alt+M,a
4.  Page Up or Down for several screens
5.  Go to the mark with Alt+G,a

If there are enough wrapped lines between your position and the mark then the
selection and the cursor will be completely offscreen.

Also restructured the function so that horizontal scrolling is not bypassed
prematurely.
source/window.c