-
Notifications
You must be signed in to change notification settings - Fork 119
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
hit-enter prompt with vim.err_write with redraw before last line (deoplete) #327
Comments
I'm not sure why the first case "waits". That seems like an accident, doesn't it? |
Agreed. I've thought that it might be intentional, but I also think that it should not wait. |
I don't understand why it's a problem for an error message to trigger hit-enter? Isn't that normal? |
The trick that deoplete uses is to first use |
Try nvim_call_atomic or server-side VimL/Lua ? |
@justinmk |
The following will not trigger a hit-enter prompt:
It displays the lines 0-9, then waits for a short time, and displays "last".
This is good/useful when wanting to add a traceback/more info for
:messages
, but have the actual error in the end (without a large red blob).But for some reason similar code in deoplete will not (when adding a
redraw
command before the last line) - it displays all of it at once, causing a hit-enter prompt: https://github.com/Shougo/deoplete.nvim/blob/57d3f0c3cdfcfc1d91901a6d59d08f9008abd166/rplugin/python3/deoplete/util.py#L94-L101This might be related to how deoplete integrates with neovim-python-client (https://github.com/Shougo/deoplete.nvim/blob/master/rplugin/python3/deoplete/parent.py#L96-L102).
The text was updated successfully, but these errors were encountered: