aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-20 17:39:52 +0000
committerpgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-07-20 17:39:52 +0000
commitd4b626649242bf9e00a268094c41f9d04fc9f321 (patch)
treef55596f2c47b7e25be573cb7e28f21594dbd008f
parent0ab35d4aedb1a819d02fa0fe8331659e11f15f29 (diff)
downloadbusybox-w32-d4b626649242bf9e00a268094c41f9d04fc9f321.tar.gz
busybox-w32-d4b626649242bf9e00a268094c41f9d04fc9f321.tar.bz2
busybox-w32-d4b626649242bf9e00a268094c41f9d04fc9f321.zip
applying fix for:
0000118: vi join command does not mark file as modified for certain lines. git-svn-id: svn://busybox.net/trunk/busybox@10873 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/vi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c
index eb0aa33f6..6f739a714 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3517,6 +3517,7 @@ key_cmd_mode:
3517 dot_end(); // move to NL 3517 dot_end(); // move to NL
3518 if (dot < end - 1) { // make sure not last char in text[] 3518 if (dot < end - 1) { // make sure not last char in text[]
3519 *dot++ = ' '; // replace NL with space 3519 *dot++ = ' '; // replace NL with space
3520 file_modified = TRUE;
3520 while (isblnk(*dot)) { // delete leading WS 3521 while (isblnk(*dot)) { // delete leading WS
3521 dot_delete(); 3522 dot_delete();
3522 } 3523 }