aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@tigress.co.uk>2014-11-30 20:39:53 +0000
committerDenys Vlasenko <vda.linux@googlemail.com>2015-01-07 18:23:29 +0100
commit70f4320b40b7af83525cebabab2bc437a22c41d2 (patch)
tree90b0523a24a7ba3e92f2f2df6940d24db4dca0d9 /coreutils/printf.c
parente5213cee3833a88397cb5e73428efb9a1b886db3 (diff)
downloadbusybox-70f4320b40b7af83525cebabab2bc437a22c41d2.tar.gz
vi: fix reading of file after last line
If the :r command is used to read a file after the last line of the buffer the last line of the buffer and the first line of the file are joined. An extra blank line appears at the end of the buffer. file 1 file 1 file 1file 2 file 2 file 2 ~ ~ The insertion point is normally at the start of the line following the specified line. When the specified line is the last one the next_line function baulks at moving to the non-existent following line. Signed-off-by: Ron Yorston <rmy@tigress.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/printf.c')
0 files changed, 0 insertions, 0 deletions