Files
neovim/runtime
Jongwook Choi 59ff4691f6 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.
2022-11-08 08:15:15 +08:00
..
2022-09-28 12:48:36 +02:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2022-09-02 15:20:29 +01:00
2014-12-19 15:28:49 -05:00
2022-08-20 10:04:55 +02:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2019-07-29 20:50:07 +02:00
2022-09-30 17:15:13 +02:00
2022-10-17 08:19:48 +02:00