Преглед изворни кода

Don't retain any clear screen sequence variants.

(Simpler, replaces previous patch)

Elide all clear screen escape sequences from the scrollback buffer,
partial or complete. zshell, for example, emits ^[[J on startup, which
causes the scrolled down portion of the screen to be cleared when
scrolling to the beginning of the buffer and less than the entire screen
is scrolled.
Ian Remmler пре 5 година
родитељ
комит
e1b7a5e2d4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -208,7 +208,7 @@ skipesc(char c)
 
 			/* don't save cursor move or clear screen */
 			/* esc sequences to log */
-			if (c == 'H' || strcmp(buf, "2J") == 0)
+			if (c == 'H' || c == 'J')
 				return true;
 		}
 		break;