Menu

#25 F9 completion inserts text into wrong window

open
nobody
None
5
2011-02-15
2011-02-15
No

(git 089726aa0662f085757c150f35cf63b624fa44f8 2011-02-14 22:27:48, Vim 7.2)

When doing ref or cite completion with F9 with multiple files open in different vim-windows, the completion might go into the wrong window. This is because Tex_CompleteWord forgets to go to the old window. The old window is saved to s:winnum at the beginning of Tex_Complete, so a simple fix is to add

exe s:winnum.'wincmd w'

to the very beginning of Tex_CompleteWord in texviewer.vim

Discussion

  • Anonymous

    Anonymous - 2011-06-16

    The given solution works for me.

    Thank you!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.