[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 2/2] vi: fix reading of file after last line
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2015-01-07 17:23:55
Message-ID: CAK1hOcPuPC_U9Vb0uiW88TmWn9z8-p6mxqhgT3ENQhU-mWO9aw () mail ! gmail ! com
[Download RAW message or body]

On Sun, Nov 30, 2014 at 9:39 PM, Ron Yorston <rmy@tigress.co.uk> wrote:
> 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>


Applied, thanks!
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic