diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-12-23 20:45:14 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-12-23 20:45:14 +0000 |
commit | d10f36fe2e553f804dff96a5b82770fd46be0834 (patch) | |
tree | 5ff847bd7162664833145130dadd3a97674a8689 /editors | |
parent | 3a5ed56803dae1915d7ad52de26b020bb81b01f5 (diff) | |
download | busybox-w32-d10f36fe2e553f804dff96a5b82770fd46be0834.tar.gz busybox-w32-d10f36fe2e553f804dff96a5b82770fd46be0834.tar.bz2 busybox-w32-d10f36fe2e553f804dff96a5b82770fd46be0834.zip |
Match changes made to cmdedit
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/vi.c b/editors/vi.c index e01ee1165..35ce172d6 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | static const char vi_Version[] = | 21 | static const char vi_Version[] = |
22 | "$Id: vi.c,v 1.29 2003/09/15 08:33:36 andersen Exp $"; | 22 | "$Id: vi.c,v 1.30 2003/12/23 20:45:14 andersen Exp $"; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * To compile for standalone use: | 25 | * To compile for standalone use: |
@@ -2113,10 +2113,8 @@ static void rawmode(void) | |||
2113 | term_vi.c_lflag &= (~ICANON & ~ECHO); // leave ISIG ON- allow intr's | 2113 | term_vi.c_lflag &= (~ICANON & ~ECHO); // leave ISIG ON- allow intr's |
2114 | term_vi.c_iflag &= (~IXON & ~ICRNL); | 2114 | term_vi.c_iflag &= (~IXON & ~ICRNL); |
2115 | term_vi.c_oflag &= (~ONLCR); | 2115 | term_vi.c_oflag &= (~ONLCR); |
2116 | #ifndef linux | ||
2117 | term_vi.c_cc[VMIN] = 1; | 2116 | term_vi.c_cc[VMIN] = 1; |
2118 | term_vi.c_cc[VTIME] = 0; | 2117 | term_vi.c_cc[VTIME] = 0; |
2119 | #endif | ||
2120 | erase_char = term_vi.c_cc[VERASE]; | 2118 | erase_char = term_vi.c_cc[VERASE]; |
2121 | tcsetattr(0, TCSANOW, &term_vi); | 2119 | tcsetattr(0, TCSANOW, &term_vi); |
2122 | } | 2120 | } |