On 2011-06-07, [email protected] wrote: > Status: New > Owner: ---- > Labels: Type-Defect Priority-Medium > > New issue 7 by [email protected]: terminal resize during file recovery > http://code.google.com/p/vim/issues/detail?id=7 > > What steps will reproduce the problem? > 1. open a file with vim > 2. in a new terminal, open the same file with another vim instance > 3. resize your terminal > > What is the expected output? What do you see instead? > I expect the text to reformat while the terminal resizes. Instead, the text > gets garbled and never formats properly again. In some cases, the output > remains affected after dismissing the prompt, during editing. In either > case, the problem can sometimes be fixed by resizing the terminal window > once again while editing.
Resizing the terminal while running vim works fine with Vim 7.2.148 and 7.3.189, GNOME Terminal 2.26.3.1, KDE 4.3.1 and Fedora 11. It has worked fine for as long as I can remember in xterm on a variety of Unixes. > What version of the product are you using? On what operating system? > > $;vim --version > VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 16 2010 17:05:25) > Included patches: 1-56 > Modified by <[email protected]> > Compiled by <[email protected]> > Huge version without GUI. Features included (+) or not (-): ... > Fedora 14, XFCE window manager, and xfce4-terminal This sort of thing happens when the terminal doesn't send SIGWINCH to the application as it should so that vim doesn't know how many lines and columns the terminal has. I suspect a problem with XFCE or xfce4-terminal, but I don't have access to an XFCE system at the moment. What happens when you execute :set columns? lines? before and after resizing? If you resize the terminal with vim running in it, then exit and restart vim, does the display look correct and does :set columns? lines? show the terminal's new size? Regards, Gary -- You received this message from the "vim_dev" 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
