Thursday, October 6, 2011

Re: vim (in terminal) fails to redraw after window resizing

On Thu, Oct 06, 2011 at 10:02:35PM -0400, Taylor Hedberg wrote:
> (Adding vim_dev to recipients...)
>
> Bram Moolenaar, Thu 2011-10-06 @ 23:21:29+0200:
>
> Attached is a patch which fixes the issue.
>
> Previously, if the terminal window was resized while Vim was waiting for
> a character to be input (in the midst of a select(2) system call), the
> resulting SIGWINCH would interrupt the syscall and set do_resize to
> TRUE, as it should. However, since patch 295, the select call would then
> immediately be retried, without checking do_resize to see if the window
> needed to be redrawn.
>
> With this patch, Vim will call handle_resize to redraw the window before
> retrying the select call if a SIGWINCH was the reason why the select was
> interrupted in the first place.
OK, that patch solved the problem (for 1-333).

Thanks.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: