New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execute() should clear cmdline #6035
Comments
this issue is found in SpaceVim/SpaceVim#186 |
Can you test #5975? |
@jamessan I am not sure if it is some issue with my config, but it still does not work well for me. |
Why is this a problem? Avoiding redraws is a good thing. Can you call |
@justinmk This is different in vim, and redraw does not work, the output still has |
Sorry, I misunderstood the report. |
I see the problem, this only happens if you
There's no problem. Nor if you store the result in a variable and then echo the variable.
|
yes, I have trid use |
It is a bug. It can be worked around by adding |
I have trid to add redraw at the beginning of Test(), but it does not work, BTW, I am using neovim 0.1.7, and has('patch-7.4.2010') return 0。 |
Hmm, confirmed. I would guess
|
Thanks, and a easy way to reproduce is : you will see |
Today I dug into the source code of both Using @wsdjeg's test case I cannot see the problem, perhaps because I ran using
If the "see where I am" starts from col 1, then it is correct and compliant to vim's behavior. |
Acutally, simply set it to 0 will make the following I created a PR to fully address this issue. A test script is saved at here. I don't know how to add test to the repo. Each |
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
I tried patching vim-patch:8.1.0569 and vim-patch:8.1.0571 for this issue but the tests fail because assertion with value from |
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
closes neovim#6035 closes neovim#9250
nvim --version
: master$TERM
: xterm-termiteActual behaviour
execute() do not clear cmdline
Expected behaviour
execute() should clear cmdline
Steps to reproduce using
nvim -u NORC
test.vim
reproduce step:
:echo Test()[0]
getg:testvim_test = 'hello neovim'
:let g:testoldversion = 1
:echo Test()[0]
get:echo Test()[0] g:testvim_test = 'hello neovim'
The text was updated successfully, but these errors were encountered: