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
This commit is contained in:
parent
0081f96ecd
commit
7e990b09e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170898
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user