commit | 68e06fb6b76b250b1971867244f33eb809891b1f | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Mon Jun 29 21:30:50 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Mon Jun 29 21:30:50 2009 +0000 |
tree | 4f8278f6ccd1a5ba4533c9cac1b0a5101eec7ec3 | |
parent | 003e8e65f7a3613a3f3004091ad1c57298dbf507 [diff] |
Fix two errors with character/line insertion and deletion: the maximum number of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.