summaryrefslogtreecommitdiff
path: root/libbb/fgets_str.c
diff options
context:
space:
mode:
authorRon Yorston2021-03-28 13:20:01 +0100
committerDenys Vlasenko2021-03-29 12:16:21 +0200
commit50a2db7dff696c0196fcc9a27db6154983bae149 (patch)
tree8c9805f5b29bf8e2567172a985ae270054ce0121 /libbb/fgets_str.c
parent18871c3f2b96e76269f5c5e4bbf102808b69bd42 (diff)
downloadbusybox-50a2db7dff696c0196fcc9a27db6154983bae149.zip
busybox-50a2db7dff696c0196fcc9a27db6154983bae149.tar.gz
vi: remember cursor column during vertical motion
When the 'j'/'k' commands or up/down arrow keys are used to move the cursor vertically 'vi' remembers the original cursor column and positions the cursor there if possible. Also, if the '$' command has been used to position the cursor at the end of a line vertical movements keep the cursor at the end of the line. Make BusyBox 'vi' do the same. function old new delta refresh 674 694 +20 do_cmd 4853 4861 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 28/0) Total: 28 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/fgets_str.c')
0 files changed, 0 insertions, 0 deletions