diff options
| author | Peter Cardenas <16930781+PeterCardenas@users.noreply.github.com> | 2026-04-24 08:57:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-24 11:57:35 -0400 |
| commit | 27191e0f4f4f9086180a8fbe3e52c1c280a70b09 (patch) | |
| tree | 7db425cbd45fbc5a32ed2a937691bdd7019d6cbc /test | |
| parent | a57fab2f2d852ec33bdbcb7fc8b90d611e6a653b (diff) | |
feat(api): nvim_echo(percent=nil) means "unknown" progress #39029
Problem:
No way to signal "unknown" or "indeterminate" progress percentage.
Solution:
Treat percent=nil as "indeterminate" percent.
Diffstat (limited to 'test')
| -rw-r--r-- | test/functional/ui/messages_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index 16030dd82d..861882c296 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -3613,7 +3613,7 @@ describe('progress-message', function() eq( "Conflict: title/source/status/percent/data not allowed with kind='echo'", - t.pcall_err(api.nvim_echo, { { 'test-message' } }, false, { percent = 10 }) + t.pcall_err(api.nvim_echo, { { 'test-message' } }, false, { percent = 0 }) ) eq( |
