diff --git a/src/text.c b/src/text.c index cfb75a1f..5e83c98f 100644 --- a/src/text.c +++ b/src/text.c @@ -2610,6 +2610,9 @@ void do_linter(void) return; } + /* Block resizing signals while reading from the pipe. */ + block_sigwinch(TRUE); + /* Read in the returned syntax errors. */ totalread = 0; buffersize = pipesize + 1; @@ -2626,6 +2629,8 @@ void do_linter(void) *pointer = '\0'; close(lint_fd[0]); + block_sigwinch(FALSE); + /* Process the linter output. */ pointer = lintings; onelint = lintings;