aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/diff.c4
-rw-r--r--editors/vi.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/diff.c b/editors/diff.c
index ef39623ef..88f8b22db 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -328,11 +328,11 @@ static void prune(void)
for (pref = 0; pref < len[0] && pref < len[1] &&
file[0][pref + 1].value == file[1][pref + 1].value; pref++)
- ;
+ continue;
for (suff = 0; suff < len[0] - pref && suff < len[1] - pref &&
file[0][len[0] - suff].value == file[1][len[1] - suff].value;
suff++)
- ;
+ continue;
for (j = 0; j < 2; j++) {
sfile[j] = file[j] + pref;
slen[j] = len[j] - pref - suff;
diff --git a/editors/vi.c b/editors/vi.c
index 97efe0cfb..c4f3a8393 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2800,7 +2800,7 @@ static void refresh(int full_screen)
format_line(buf, tp, li);
// skip to the end of the current text[] line
- while (tp < end && *tp++ != '\n') /*no-op*/ ;
+ while (tp < end && *tp++ != '\n') /*no-op*/;
// see if there are any changes between vitual screen and buf
changed = FALSE; // assume no change