aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/loader.lua
diff options
context:
space:
mode:
authorMarcus Caisey <marcus@teckna.com>2024-11-25 22:33:11 +0000
committerGitHub <noreply@github.com>2024-11-25 16:33:11 -0600
commitc644228e1dfe9f70aae53292b328be98dc95b8f7 (patch)
tree8fa7c6e0b6d600415b3f8b9a9886173cd024bda6 /runtime/lua/vim/loader.lua
parentf81131cca2b4bf28f3d0a2411b13d0082a580903 (diff)
downloadrneovim-c644228e1dfe9f70aae53292b328be98dc95b8f7.tar.gz
rneovim-c644228e1dfe9f70aae53292b328be98dc95b8f7.tar.bz2
rneovim-c644228e1dfe9f70aae53292b328be98dc95b8f7.zip
fix(defaults): omit empty line from unimpaired mapping messages (#31347)
Problem: The default unimpaired mappings display an empty line after the command's output. This results (with default configuration) in the `Press ENTER or type command to continue` prompt to be displayed, like so: ``` (2 of 16): item2 Press ENTER or type command to continue ``` Solution: The cause is that we're checking the second return value from `pcall(vim.api.nvim_cmd, opts, {})` to determine whether the call was successful. `nvim_cmd` returns an empty string on success, so this value is an empty string in the successful path which we then display. The fix is simple: check the first return value instead which is the "status code" of the call.
Diffstat (limited to 'runtime/lua/vim/loader.lua')
0 files changed, 0 insertions, 0 deletions