vi: fix adjustment of buffer on partial file read
authorRon Yorston <rmy@tigress.co.uk>
Thu, 7 Mar 2013 20:37:23 +0000 (20:37 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Mar 2013 01:10:07 +0000 (02:10 +0100)
commitcb5aa725df472a7ab84c7c513a8dda98b9b3a6bc
tree08c5b37bc6e78a4aa89dde57d2cf4b4d5ffa67c3
parent257a77568ab452244de55d4cd35ba39541fce2a7
vi: fix adjustment of buffer on partial file read

The second argument to text_hole_delete was incorrect: it should
be a pointer to the end of the hole.

Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c