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)
328 328
329 for (pref = 0; pref < len[0] && pref < len[1] && 329 for (pref = 0; pref < len[0] && pref < len[1] &&
330 file[0][pref + 1].value == file[1][pref + 1].value; pref++) 330 file[0][pref + 1].value == file[1][pref + 1].value; pref++)
331 ; 331 continue;
332 for (suff = 0; suff < len[0] - pref && suff < len[1] - pref && 332 for (suff = 0; suff < len[0] - pref && suff < len[1] - pref &&
333 file[0][len[0] - suff].value == file[1][len[1] - suff].value; 333 file[0][len[0] - suff].value == file[1][len[1] - suff].value;
334 suff++) 334 suff++)
335 ; 335 continue;
336 for (j = 0; j < 2; j++) { 336 for (j = 0; j < 2; j++) {
337 sfile[j] = file[j] + pref; 337 sfile[j] = file[j] + pref;
338 slen[j] = len[j] - pref - suff; 338 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)
2800 format_line(buf, tp, li); 2800 format_line(buf, tp, li);
2801 2801
2802 // skip to the end of the current text[] line 2802 // skip to the end of the current text[] line
2803 while (tp < end && *tp++ != '\n') /*no-op*/ ; 2803 while (tp < end && *tp++ != '\n') /*no-op*/;
2804 2804
2805 // see if there are any changes between vitual screen and buf 2805 // see if there are any changes between vitual screen and buf
2806 changed = FALSE; // assume no change 2806 changed = FALSE; // assume no change