-
-
Couldn't load subscription status.
- Fork 5.9k
'statusline' is disable with builtin error which is caught correctly #729
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
'statusline' is disable with builtin error which is caught correctly #729
Conversation
Instead, we should check did_emsg (which I assume is an error actually occur) and disable statusline and show an error message as well.
src/testdir/test_statusline.vim
Outdated
| return '' | ||
| endfunction | ||
|
|
||
| function! Test_cached_error_in_statusline() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/cached/catched/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also in the title of this pull request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be "caught".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍 I fixed it.
|
Thanks 👍 |
- 7.4.1711: when using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: for plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: gTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
- 7.4.1711: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Check did_emsg instead of called_emsg. (haya14busa, closes vim#729) - 7.4.1712: For plugins in packages, plugin authors need to take care of all dependencies. When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. - 7.4.1713: GTK GUI doesn't work on Wayland. Specify that only the X11 backend is allowed. (Simon McVittie) - 7.4.1714: Non-GUI specific settings in the gvimrc_example file. Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi)
Problem: When using try/catch in 'statusline' it is still considered an
error and the status line will be disabled.
Solution: Check did_emsg instead of called_emsg. (haya14busa, closes vim#729)
Problem: When using try/catch in 'statusline' it is still considered an
error and the status line will be disabled.
Solution: Check did_emsg instead of called_emsg. (haya14busa, closes vim/vim#729)
vim/vim@a742e08
Problem: When using try/catch in 'statusline' it is still considered an
error and the status line will be disabled.
Solution: Check did_emsg instead of called_emsg. (haya14busa, closes vim/vim#729)
vim/vim@a742e08
Hi
Problem
'statusline' is disable with builtin error which is cathced correctly
How To Reproduce
statusline_test.vimrc
vim -u statusline_test.vimrc -i NONE -N:redrawstatus" Press ENTER or type command to continue<Enter>&statusline == '')Expected
vim -u statusline_test.vimrc -i NONE -N:redrawstatusI fixed this problem and also added tests. Please include it.
Thanks.