← Commit list

a2fd1aaf8

Ron Yorston
Ron Yorston
2019-03-30
SUCCESS Duration: 150s

Subject

vi: allow manual screen update if SIGWINCH isn't supported

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+8 -0
@@ -3349,7 +3349,15 @@ static void refresh(int full_screen)
if (ENABLE_FEATURE_VI_WIN_RESIZE IF_FEATURE_VI_ASK_TERMINAL(&& !G.get_rowcol_error) ) {
unsigned c = columns, r = rows;
query_screen_dimensions();
+#if ENABLE_FEATURE_VI_USE_SIGNALS
full_screen |= (c - columns) | (r - rows);
+#else
+ if (c != columns || r != rows) {
+ full_screen = TRUE;
+ /* update screen memory since SIGWINCH won't have done it */
+ new_screen(rows, columns);
+ }
+#endif
}
sync_cursor(dot, &crow, &ccol); // where cursor will be (on "dot")
tp = screenbegin; // index into text[] of top line