hush/editors
Ron Yorston 70f4320b40 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>
2015-01-07 18:23:29 +01:00
..
awk.c awk: fix handling of "if ... break ; else ..." - closes 7226 2014-06-26 16:40:28 +02:00
cmp.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
Config.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
diff.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
ed.c switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
Kbuild.src switch editors/* to embedded-in-source kbuild system 2013-11-13 12:45:33 +01:00
patch_bbox.c Use unsigned printf/scanf conversion where more appropriate 2013-11-29 16:45:45 +01:00
patch_toybox.c *: replace xopen3 with xopen where makes sense 2010-10-18 02:38:27 +02:00
patch.c patch: make -p count path components, not slashes (think /blah//thing) 2011-10-10 19:59:38 +02:00
sed1line.txt add sed mini-doc 2007-11-13 17:13:31 +00:00
sed_summary.htm doc: add info about sed s/.../.../I modifier 2008-03-01 19:29:56 +00:00
sed.c sed: fix "sed CMD -i nonexistent_file". Closes 7484 2014-10-05 02:44:34 +02:00
vi.c vi: fix reading of file after last line 2015-01-07 18:23:29 +01:00