diff options
author | Jongwook Choi <wookayin@gmail.com> | 2022-11-07 19:15:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 08:15:15 +0800 |
commit | 59ff4691f67fc1ddd3d1b7240a2f2eb095e58281 (patch) | |
tree | 09f43712485108b3770891986a1c1ffc015c85a0 /runtime/lua/vim/lsp/_snippet.lua | |
parent | 8147d3df284a075f89746f9d5e948b5220c45f0b (diff) | |
download | rneovim-59ff4691f67fc1ddd3d1b7240a2f2eb095e58281.tar.gz rneovim-59ff4691f67fc1ddd3d1b7240a2f2eb095e58281.tar.bz2 rneovim-59ff4691f67fc1ddd3d1b7240a2f2eb095e58281.zip |
fix(vim.ui.input): return empty string when inputs nothing (#20883)
fix(vim.ui.input): return empty string when inputs nothing
The previous behavior of `vim.ui.input()` when typing <CR> with
no text input (with an intention of having the empty string as input)
was to execute `on_confirm(nil)`, conflicting with its documentation.
Inputting an empty string should now correctly execute `on_confirm('')`.
This should be clearly distinguished from cancelling or aborting the
input UI, in which case `on_confirm(nil)` is executed as before.
Diffstat (limited to 'runtime/lua/vim/lsp/_snippet.lua')
0 files changed, 0 insertions, 0 deletions