aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 070af611a..f8ca5d351 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1077,7 +1077,7 @@ static void process_files(void)
1077 /* or does this line matches our last address regex */ 1077 /* or does this line matches our last address regex */
1078 || (sed_cmd->end_match && old_matched 1078 || (sed_cmd->end_match && old_matched
1079 && (regexec(sed_cmd->end_match, 1079 && (regexec(sed_cmd->end_match,
1080 pattern_space, 0, NULL, 0) == 0) 1080 pattern_space, 0, NULL, 0) == 0)
1081 ) 1081 )
1082 ); 1082 );
1083 } 1083 }
diff --git a/editors/vi.c b/editors/vi.c
index b1776c668..5b5e2b0bf 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1929,11 +1929,11 @@ static int find_range(char **start, char **stop, char c)
1929 dot_end(); // find NL 1929 dot_end(); // find NL
1930 q = dot; 1930 q = dot;
1931 } else { 1931 } else {
1932 // nothing -- this causes any other values of c to 1932 // nothing -- this causes any other values of c to
1933 // represent the one-character range under the 1933 // represent the one-character range under the
1934 // cursor. this is correct for ' ' and 'l', but 1934 // cursor. this is correct for ' ' and 'l', but
1935 // perhaps no others. 1935 // perhaps no others.
1936 // 1936 //
1937 } 1937 }
1938 if (q < p) { 1938 if (q < p) {
1939 t = q; 1939 t = q;