aboutsummaryrefslogtreecommitdiff
path: root/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'vi.c')
-rw-r--r--vi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vi.c b/vi.c
index 38aee15d7..8d7506d0f 100644
--- a/vi.c
+++ b/vi.c
@@ -19,7 +19,7 @@
19 */ 19 */
20 20
21static const char vi_Version[] = 21static const char vi_Version[] =
22 "$Id: vi.c,v 1.14 2001/07/31 15:01:12 kraai Exp $"; 22 "$Id: vi.c,v 1.15 2001/08/02 05:26:41 andersen Exp $";
23 23
24/* 24/*
25 * To compile for standalone use: 25 * To compile for standalone use:
@@ -2640,12 +2640,12 @@ static Byte *char_insert(Byte * p, Byte c) // insert the char c at 'p'
2640 cmdcnt = 0; 2640 cmdcnt = 0;
2641 end_cmd_q(); // stop adding to q 2641 end_cmd_q(); // stop adding to q
2642 strcpy((char *) status_buffer, " "); // clear the status buffer 2642 strcpy((char *) status_buffer, " "); // clear the status buffer
2643 if (p[-1] != '\n') { 2643 if ((p[-1] != '\n') && (dot>text)) {
2644 p--; 2644 p--;
2645 } 2645 }
2646 } else if (c == erase_char) { // Is this a BS 2646 } else if (c == erase_char) { // Is this a BS
2647 // 123456789 2647 // 123456789
2648 if (p[-1] != '\n') { 2648 if ((p[-1] != '\n') && (dot>text)) {
2649 p--; 2649 p--;
2650 p = text_hole_delete(p, p); // shrink buffer 1 char 2650 p = text_hole_delete(p, p); // shrink buffer 1 char
2651#ifdef BB_FEATURE_VI_DOT_CMD 2651#ifdef BB_FEATURE_VI_DOT_CMD