Files
neovim/runtime/lua/vim
Marcus Caisey c644228e1d 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.
2024-11-25 16:33:11 -06:00
..
2024-10-23 14:13:42 +02:00
2024-03-06 10:45:22 +00:00
2024-01-16 09:33:10 +00:00
2024-09-01 13:01:24 -07:00
2024-11-22 12:51:30 +00:00