diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-17 23:20:43 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-17 23:20:43 +0000 |
commit | 34b5aafd8bc6a92e2bf86f50adeddc8a779905c4 (patch) | |
tree | ef11aecc80d57638988747d2e9b3158ea474e005 /contrib/less | |
parent | 3455d229dacc36fe2bcdfa70b8392ace695dede3 (diff) | |
download | FreeBSD-src-34b5aafd8bc6a92e2bf86f50adeddc8a779905c4.zip FreeBSD-src-34b5aafd8bc6a92e2bf86f50adeddc8a779905c4.tar.gz |
Apply a vendor patch that fixes very annoying bug
which caused the cursor not to return to the place
it should when -w is used with -e.
Note that this is a commit against -HEAD because
we already have the file off the vendor branch.
Reported by: Tom Uffner (on -current@)
Obtained from: http://www.greenwoodsoftware.com/less/less-405.tar.gz
Diffstat (limited to 'contrib/less')
-rw-r--r-- | contrib/less/search.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/less/search.c b/contrib/less/search.c index ccc07bd..e81bce5 100644 --- a/contrib/less/search.c +++ b/contrib/less/search.c @@ -294,6 +294,7 @@ clear_attn() POSITION old_end_attnpos; POSITION pos; POSITION epos; + int moved = 0; if (start_attnpos == NULL_POSITION) return; @@ -321,8 +322,11 @@ clear_attn() (void) forw_line(pos); goto_line(slinenum); put_line(); + moved = 1; } } + if (moved) + lower_left(); } #endif |