You are not logged in.

#1 2010-03-02 07:03:51

bhobbit
Member
From: Brooklyn, NY, US
Registered: 2009-11-25
Posts: 18

gVim 7.2.368-3 cursor bug

Hi all. After I upgraded to the latest version of Vim a couple of days ago, I started experiencing what looks like gVim cursor redraw bug. When I move the cursor in gVim, it obstructs the letter it is on:

vim_bug.png

I do not experience this in plain Vim. There are things that can make the cursor exhibit normal behavior, such as 1) me pressing Esc key 2) Awesome WM clock updating 3) scrot taking a screenshot (I had to Gimp the screenshot above because the cursor goes back to normal the moment a screenshot is taken).

Vim and Xorg packages were upgraded during my last update, but Awesome WM was not.

Is anybody else experiencing this? How should I go about finding the culprit?

Offline

#2 2010-03-02 20:11:19

bhobbit
Member
From: Brooklyn, NY, US
Registered: 2009-11-25
Posts: 18

Re: gVim 7.2.368-3 cursor bug

I did some more googling and the only thing I could find was a similar-looking cursor bug, reported here on Arch forums [1] and in Fedora mailing lists. It looks like that bug simply went away after an update, so there were no suggested fixes or success stories posted.

If I do

:set cursorline

the problem only appears when I move in vertical direction. In the meantime, I set cursor to an underline with

:set guicursor=a:hor15

as a workaround.

[1] http://bbs.archlinux.org/viewtopic.php?id=58308

Offline

#3 2010-03-05 19:24:37

bhobbit
Member
From: Brooklyn, NY, US
Registered: 2009-11-25
Posts: 18

Re: gVim 7.2.368-3 cursor bug

I wanted to report the issue upstream, since I discovered a couple more similar bugs, but it looks like the ViM project does not have a bugtracker(!). How does one report ViM bugs to the developers?

Offline

#4 2010-03-10 20:46:41

jichuan89
Member
From: Mountain View, CA
Registered: 2010-03-10
Posts: 9
Website

Re: gVim 7.2.368-3 cursor bug

I am getting the same bug here. However, it only seems to occur when I use bitmap fonts like Dina or Terminus. Using a TrueType font like Courier New or Nimbus Mono works perfectly. Confused sad

This seems to be a bug specific to the intel driver for X11. When I reboot the machine and switch to my discrete ATI graphics card (my laptop has dual integrated/discrete graphics cards) the problem disappears completely. Also forwarding Vim through SSH from this laptop to other computers works as well. Could you confirm this? What X11 video driver are you using?

Last edited by jichuan89 (2010-03-10 21:48:25)

Offline

#5 2010-03-10 20:58:22

jichuan89
Member
From: Mountain View, CA
Registered: 2010-03-10
Posts: 9
Website

Re: gVim 7.2.368-3 cursor bug

bhobbit - the link you found on the Arch forum is about another bug that went away Vim upgrade several weeks ago. It had been bothering me and I was glad to see that it had disappeared. Well, guess I'm stuck with my TTF Droid Mono font for now

Offline

#6 2010-03-16 08:16:09

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: gVim 7.2.368-3 cursor bug

jichuan89 wrote:

I am getting the same bug here. However, it only seems to occur when I use bitmap fonts like Dina or Terminus. Using a TrueType font like Courier New or Nimbus Mono works perfectly. Confused sad

This seems to be a bug specific to the intel driver for X11. When I reboot the machine and switch to my discrete ATI graphics card (my laptop has dual integrated/discrete graphics cards) the problem disappears completely. Also forwarding Vim through SSH from this laptop to other computers works as well. Could you confirm this? What X11 video driver are you using?

Thank you for pointing this out. I have changed the font and now the cursor works again. Hope this bug will be fixed soon. I am missing my dina fonts.

Last edited by ArchArael (2010-03-16 08:16:24)

Offline

#7 2010-07-13 18:04:58

jichuan89
Member
From: Mountain View, CA
Registered: 2010-03-10
Posts: 9
Website

Re: gVim 7.2.368-3 cursor bug

Issue solved with a recent upgrade to xf86-video-intel 2.12.0-1. Can now use both bitmap and TTF fonts.

Offline

#8 2010-07-13 19:38:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: gVim 7.2.368-3 cursor bug

> Issue solved with a recent upgrade to xf86-video-intel 2.12.0-1
That's right.
I think that the bug wasn't only about vim though - running things in terminals was also affected.

Offline

Board footer

Powered by FluxBB