aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/patch.c2
-rw-r--r--editors/vi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c
index a37f4e62f..a2d593d87 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -136,7 +136,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv)
136 src_stream = NULL; 136 src_stream = NULL;
137 137
138 if (backup_filename && !stat(original_filename, &saved_stat)) { 138 if (backup_filename && !stat(original_filename, &saved_stat)) {
139 src_stream = xfopen((strcmp(original_filename, new_filename)) ? 139 src_stream = xfopen((strcmp(original_filename, new_filename)) ?
140 original_filename : backup_filename, "r"); 140 original_filename : backup_filename, "r");
141 } 141 }
142 142
diff --git a/editors/vi.c b/editors/vi.c
index 22bd2fffa..65fb0265e 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1718,7 +1718,7 @@ static int find_range(char ** start, char ** stop, char c)
1718 p = t; 1718 p = t;
1719 } 1719 }
1720 1720
1721 // backward char movements don't include start position 1721 // backward char movements don't include start position
1722 if (q > p && strchr("^0bBh\b\177", c)) q--; 1722 if (q > p && strchr("^0bBh\b\177", c)) q--;
1723 1723
1724 multiline = 0; 1724 multiline = 0;