diff options
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r-- | shell/cmdedit.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index edfa01613..db246315c 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -67,7 +67,7 @@ | |||
67 | #define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT | 67 | #define CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT |
68 | #define CONFIG_FEATURE_CLEAN_UP | 68 | #define CONFIG_FEATURE_CLEAN_UP |
69 | 69 | ||
70 | #endif /* TEST */ | 70 | #endif /* TEST */ |
71 | 71 | ||
72 | #ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION | 72 | #ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION |
73 | #include <dirent.h> | 73 | #include <dirent.h> |
@@ -82,7 +82,7 @@ | |||
82 | 82 | ||
83 | #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR | 83 | #ifdef CONFIG_FEATURE_GETUSERNAME_AND_HOMEDIR |
84 | #include "pwd_.h" | 84 | #include "pwd_.h" |
85 | #endif /* advanced FEATURES */ | 85 | #endif /* advanced FEATURES */ |
86 | 86 | ||
87 | 87 | ||
88 | /* Maximum length of the linked list for the command line history */ | 88 | /* Maximum length of the linked list for the command line history */ |
@@ -177,7 +177,7 @@ static void win_changed(int nsig) | |||
177 | previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); | 177 | previous_SIGWINCH_handler = signal(SIGWINCH, win_changed); |
178 | else if (nsig == SIGWINCH) /* signaled called handler */ | 178 | else if (nsig == SIGWINCH) /* signaled called handler */ |
179 | signal(SIGWINCH, win_changed); /* set for next call */ | 179 | signal(SIGWINCH, win_changed); /* set for next call */ |
180 | else /* nsig == 0 */ | 180 | else /* nsig == 0 */ |
181 | /* set previous handler */ | 181 | /* set previous handler */ |
182 | signal(SIGWINCH, previous_SIGWINCH_handler); /* reset */ | 182 | signal(SIGWINCH, previous_SIGWINCH_handler); /* reset */ |
183 | } | 183 | } |
@@ -907,7 +907,7 @@ static int find_match(char *matchBuf, int *len_with_quotes) | |||
907 | } | 907 | } |
908 | 908 | ||
909 | /* collapse (command...(command...)...) or {command...{command...}...} */ | 909 | /* collapse (command...(command...)...) or {command...{command...}...} */ |
910 | c = 0; /* "recursive" level */ | 910 | c = 0; /* "recursive" level */ |
911 | c2 = 0; | 911 | c2 = 0; |
912 | for (i = 0; int_buf[i]; i++) | 912 | for (i = 0; int_buf[i]; i++) |
913 | if (int_buf[i] == '(' || int_buf[i] == '{') { | 913 | if (int_buf[i] == '(' || int_buf[i] == '{') { |
@@ -1358,7 +1358,7 @@ vi_back_motion(char *command) | |||
1358 | } | 1358 | } |
1359 | #endif | 1359 | #endif |
1360 | 1360 | ||
1361 | /* | 1361 | /* |
1362 | * the normal emacs mode and vi's insert mode are the same. | 1362 | * the normal emacs mode and vi's insert mode are the same. |
1363 | * commands entered when in vi command mode ("escape mode") get | 1363 | * commands entered when in vi command mode ("escape mode") get |
1364 | * an extra bit added to distinguish them. this lets them share | 1364 | * an extra bit added to distinguish them. this lets them share |
@@ -1431,7 +1431,7 @@ int cmdedit_read_input(char *prompt, char command[BUFSIZ]) | |||
1431 | newdelflag = 1; | 1431 | newdelflag = 1; |
1432 | ic = c; | 1432 | ic = c; |
1433 | if (vi_cmdmode) | 1433 | if (vi_cmdmode) |
1434 | ic |= VI_cmdbit; | 1434 | ic |= VI_cmdbit; |
1435 | switch (ic) | 1435 | switch (ic) |
1436 | #else | 1436 | #else |
1437 | switch (c) | 1437 | switch (c) |
@@ -1613,7 +1613,7 @@ prepare_to_die: | |||
1613 | vi_cmdmode = 0; | 1613 | vi_cmdmode = 0; |
1614 | /* fall through */ | 1614 | /* fall through */ |
1615 | case VICMD('d'): | 1615 | case VICMD('d'): |
1616 | { | 1616 | { |
1617 | int nc, sc; | 1617 | int nc, sc; |
1618 | sc = cursor; | 1618 | sc = cursor; |
1619 | prevc = ic; | 1619 | prevc = ic; |
@@ -1632,7 +1632,7 @@ prepare_to_die: | |||
1632 | case 'E': | 1632 | case 'E': |
1633 | switch (c) { | 1633 | switch (c) { |
1634 | case 'w': /* "dw", "cw" */ | 1634 | case 'w': /* "dw", "cw" */ |
1635 | vi_word_motion(command, vi_cmdmode); | 1635 | vi_word_motion(command, vi_cmdmode); |
1636 | break; | 1636 | break; |
1637 | case 'W': /* 'dW', 'cW' */ | 1637 | case 'W': /* 'dW', 'cW' */ |
1638 | vi_Word_motion(command, vi_cmdmode); | 1638 | vi_Word_motion(command, vi_cmdmode); |