diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-17 09:57:29 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-17 09:57:29 +0000 |
commit | 829afbd150936f188a9488e7ba8180db95a2be87 (patch) | |
tree | a9423608da524978b1f2b28458985b62682c4ada /shell | |
parent | 7f8036d3f0f599a10090c22b73126b7ec6ee3727 (diff) | |
download | busybox-w32-829afbd150936f188a9488e7ba8180db95a2be87.tar.gz busybox-w32-829afbd150936f188a9488e7ba8180db95a2be87.tar.bz2 busybox-w32-829afbd150936f188a9488e7ba8180db95a2be87.zip |
vi: fix spurious error on opening file with CRLF line endings
Commit 91e49fbc7 (vi: add a function to count CRs in the text buffer)
resulted in the spurious error "can't read 'file'" when opening a
file with CRLF line endings.
This was because the count function was called with an incorrect
pointer into the text buffer. The upstream code:
p = text_hole_delete(p + cnt, p + size - 1, NO_UNDO);
unnecessarily updates the pointer p: it's never used again.
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions