aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-17 09:57:29 +0000
committerRon Yorston <rmy@pobox.com>2019-03-17 09:57:29 +0000
commit829afbd150936f188a9488e7ba8180db95a2be87 (patch)
treea9423608da524978b1f2b28458985b62682c4ada /shell
parent7f8036d3f0f599a10090c22b73126b7ec6ee3727 (diff)
downloadbusybox-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