diff options
author | Tim Riker | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /editors | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip busybox-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz |
just whitespace
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 2 | ||||
-rw-r--r-- | editors/vi.c | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/editors/sed.c b/editors/sed.c index 2f6fc17..dcc2ca0 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1191,7 +1191,7 @@ extern int sed_main(int argc, char **argv) if(in_place) { struct stat statbuf; int nonstdoutfd; - + outname=bb_xstrndup(argv[i],strlen(argv[i])+6); strcat(outname,"XXXXXX"); if(-1==(nonstdoutfd=mkstemp(outname))) diff --git a/editors/vi.c b/editors/vi.c index 6689e29..fddd0a9 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -1673,13 +1673,13 @@ static Byte find_range(Byte ** start, Byte ** stop, Byte c) q = dot; } else if (strchr("wW", c)) { do_cmd(c); // execute movement cmd - // if we are at the next word's first char - // step back one char - // but check the possibilities when it is true + // if we are at the next word's first char + // step back one char + // but check the possibilities when it is true if (dot > text && ((isspace(dot[-1]) && !isspace(dot[0])) - || (ispunct(dot[-1]) && !ispunct(dot[0])) - || (isalnum(dot[-1]) && !isalnum(dot[0])))) - dot--; // move back off of next word + || (ispunct(dot[-1]) && !ispunct(dot[0])) + || (isalnum(dot[-1]) && !isalnum(dot[0])))) + dot--; // move back off of next word if (dot > text && *dot == '\n') dot--; // stay off NL q = dot; @@ -2405,7 +2405,7 @@ static Byte *get_input_line(Byte * prompt) // get input line- use "status line" if (c == '\n' || c == '\r' || c == 27) break; // is this end of input if (c == erase_char || c == 8 || c == 127) { - // user wants to erase prev char + // user wants to erase prev char i--; // backup to prev char buf[i] = '\0'; // erase the char buf[i + 1] = '\0'; // null terminate buffer @@ -3754,11 +3754,11 @@ key_cmd_mode: end_cmd_q(); // stop adding to q break; case 't': // t- move to char prior to next x - last_forward_char = get_one_char(); - do_cmd(';'); - if (*dot == last_forward_char) - dot_left(); - last_forward_char= 0; + last_forward_char = get_one_char(); + do_cmd(';'); + if (*dot == last_forward_char) + dot_left(); + last_forward_char= 0; break; case 'w': // w- forward a word if (cmdcnt-- > 1) { @@ -4047,4 +4047,4 @@ static void crash_test() } return; } -#endif /* CONFIG_FEATURE_VI_CRASHME */ +#endif /* CONFIG_FEATURE_VI_CRASHME */ |