commit | f817a338d035d96cec8ceeaaa60a79ac01421563 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Fri Aug 21 07:33:58 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Fri Aug 21 07:33:58 2009 +0000 |
tree | 7b570f40bb6a92b7c03f89cdfa682ea81b40913c | |
parent | 0198bb6bf3f1b3877ca8def6d198642a2a41d342 [diff] |
When moving up or down in copy mode, save the cursor position and size of the last line with content (width != 0) and use it to determine if the cursor should be at the end of the line. Fixes problem of the cursor always jumping to the end of the line when scrolling past a blank line.