Fabrizio Cabaleiro wrote:
> I checked what jedi-vim was setting and I found the root cause, now
> there is no need to have jedi-vim to reproduce. The problem is related
> to 'completeopt' with longest.
>
> Using the same test.vim from previous email, run vim as:
>
> $ vim -S ~/test.vim --cmd 'set completeopt+=longest'
> and then press 'i<c-x><c-o><c-n>'
>
>
> Also, I found out that the issue is timing dependant, I was testing with
> tmux and if I send all the keys at once, the issue is not visible, but
> if I give a little delay to '<c-n>' the issue is there. To reproduce this:
> Start tmux with
> $ tmux
> Split into two planes with
> $ tmux split-pane
> List panes with
> $ tmux list-panes
> The active pane should be %1 and the other should be %0
> Now if I execute vim as
> $ tmux send-keys -t %0 'vim -S test.vim --cmd "set
> completeopt+=longest"' C-m 'i' C-x C-o C-n
> The issue is not visible, but if I execute as
> $ tmux send-keys -t %0 'vim -S test.vim --cmd "set
> completeopt+=longest"' C-m 'i' C-x C-o ; sleep 1 ; tmux send-keys -t %0 C-n
> The issue is there.
Thanks for digging into this. I managed to reproduce it now.
Opening the preview window causes the popup to move, and redrawing
happens twice then. The first time the position isn't updated yet, and
a part of the redrawing is skipped. I'll fix that.
--
A KNIGHT rides into shot and hacks him to the ground. He rides off.
We stay for a moment on the glade. A MIDDLE-AGED LADY in a C. & A.
twin-set emerges from the trees and looks in horror at the body of her
HUSBAND.
MRS HISTORIAN: FRANK!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201912151356.xBFDu5T3005509%40masaka.moolenaar.net.