Git Product home page Git Product logo

Comments (5)

majutsushi avatar majutsushi commented on May 21, 2024

That's strange, I can't really see how that could happen with Tagbar's code. What's your Vim version? What is 'updatetime' set to? Also, could you try the following things:

  • What happens when you do :execute <linenumber> with an arbitrary line number that's not currently shown in the window?
  • Does anything change when you replace the line
    execute taginfo.fields.line
    in s:JumpToTag() (line 1659) with
    execute 'normal ' . taginfo.fields.line . 'G'
  • Does anything change when you comment out the line
    call s:HighlightTag(s:current_file)
    in the same function?

from tagbar.

majutsushi avatar majutsushi commented on May 21, 2024

I just thought of something: try inserting a line with just redraw in it after the normal! z. line in s:JumpToTag().

from tagbar.

Mishail avatar Mishail commented on May 21, 2024

My vim is 7.3.98 and updatetime == 4000.
I've tried the steps proposed in your 1st comment, and here are results:

  • :execute <linenumber> immediately switches to the given line (even if that's not shown in the window)
  • Chages in the s:JumpToTag() (line 1659) don't help
  • But commenting the call s:HighlightTag(s:current_file) seems solves the issue.

from tagbar.

Mishail avatar Mishail commented on May 21, 2024

Well, ading redraw and uncommenting call s:HighlightTag(s:current_file) seems to be working too

from tagbar.

majutsushi avatar majutsushi commented on May 21, 2024

Interesting, in some cases Vim doesn't seem to redraw automatically after moving the cursor. I've added redraw to a few places now, so the problem should hopefully be fixed.

from tagbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.