Screen not redrawing in console Vim after z=

2009-05-28 Fir de Conversatie Raúl Núñez de Arenas Coronado

Hi all :)

I don't know if this is my fault, my terminal's fault or a Vim bug. It
happens both in my distro's Vim and my self compiled Vim (which is
newer). Latest version showing this problem is 7.2.184, tested under a
terminal virtual and a Linux console.

The problem is the following: in INSERT MODE I put the cursor over a
misspelled word, hit Ctrl-O and after that z=, I type the number of
the word I want, hit enter and the screen is not redrawn. The list of
spell suggestions is kept on the screen *but* the cursor is drawn where
it should be, over the corrected word (although this cannot be seen
since the screen is not redrawn, the cursor is in the right place). As
soon as I use a motion command, the screen is properly redrawn. I
haven't tested with non-motion commands, since the cursors are at
hand... It doesn't happen in normal mode.

To reproduce, run vim -u NONE. Once in Vim, type :set spell, enter
insert mode and write Xtrange, put the cursor on the word, type the
command C-Oz=1Enter and the screen is not redrawn, you still see
the spell suggestion list. Hit a cursor and the screen is redrawn.

No, I don't have lazyredraw set and the problem happens after vim -u
NONE too, so before posting here my settings I would like to hear about
usual suspects, missing patches or missing features I should have
activated O:)

Thanks a lot in advance :))

-- 
Raúl DervishD Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Screen not redrawing in console Vim after z=

2009-05-28 Fir de Conversatie Matt Wozniski

2009/5/28 Raúl Núñez de Arenas Coronado:

 Hi all :)

 I don't know if this is my fault, my terminal's fault or a Vim bug. It
 happens both in my distro's Vim and my self compiled Vim (which is
 newer). Latest version showing this problem is 7.2.184, tested under a
 terminal virtual and a Linux console.

I can reproduce the problem in gvim (both GTK2 and lesstif), although
in gvim the screen is redrawn automatically after a few seconds...
don't know why, didn't seem to be tied to the value of 'updatetime' or
'timeoutlen'...

~Matt

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Screen not redrawing in console Vim after z=

2009-05-28 Fir de Conversatie Bram Moolenaar


Raulnac wrote:

 Hi all :)
 
 I don't know if this is my fault, my terminal's fault or a Vim bug. It
 happens both in my distro's Vim and my self compiled Vim (which is
 newer). Latest version showing this problem is 7.2.184, tested under a
 terminal virtual and a Linux console.
 
 The problem is the following: in INSERT MODE I put the cursor over a
 misspelled word, hit Ctrl-O and after that z=3D, I type the number of
 the word I want, hit enter and the screen is not redrawn. The list of
 spell suggestions is kept on the screen *but* the cursor is drawn where
 it should be, over the corrected word (although this cannot be seen
 since the screen is not redrawn, the cursor is in the right place). As
 soon as I use a motion command, the screen is properly redrawn. I
 haven't tested with non-motion commands, since the cursors are at
 hand... It doesn't happen in normal mode.
 
 To reproduce, run vim -u NONE. Once in Vim, type :set spell, enter
 insert mode and write Xtrange, put the cursor on the word, type the
 command C-Oz=3D1Enter and the screen is not redrawn, you still see
 the spell suggestion list. Hit a cursor and the screen is redrawn.
 
 No, I don't have lazyredraw set and the problem happens after vim -u
 NONE too, so before posting here my settings I would like to hear about
 usual suspects, missing patches or missing features I should have
 activated O:)
 
 Thanks a lot in advance :))

For me it does redraw after a couple of seconds.  It's the time Vim
waits for you to read a message.  That is not appropriate in this
situation, I'll make a note to fix it.

-- 
The only way the average employee can speak to an executive is by taking a
second job as a golf caddie.
(Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Screen not redrawing in console Vim after z=

2009-05-28 Fir de Conversatie Raúl Núñez de Arenas Coronado

Saluton Matt :)

On Thu 28 May 2009 19:17 +0200, Matt Wozniski m...@drexel.edu dixit:
 2009/5/28 Raúl Núñez de Arenas Coronado:
 I don't know if this is my fault, my terminal's fault or a Vim bug.
 It happens both in my distro's Vim and my self compiled Vim (which is
 newer). Latest version showing this problem is 7.2.184, tested under
 a terminal virtual and a Linux console.

 I can reproduce the problem in gvim (both GTK2 and lesstif),

At first I assumed the problem was related to the terminal, so I didn't
check gvim, specially because I don't use it and I haven't it compiled.

 although in gvim the screen is redrawn automatically after a few
 seconds... don't know why, didn't seem to be tied to the value of
 'updatetime' or 'timeoutlen'...

Finally looks like it is the time that Vim leaves you to read a message,
that's why it happens in gvim too. And yes, my Vim also redraws
automatically after four seconds or so, but I didn't wait so long when I
did the tests!

Thanks for testing :)

-- 
Raúl DervishD Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---