Shougo
Shougo
> I am doing something wrong in 'mini.ai' which can be fixed there, but I can't figure out if that is the case. Hm... The implementation something wrong.
```lua H.message = function(msg) vim.cmd([[echon '']]) vim.cmd('redraw') vim.cmd('echomsg ' .. vim.inspect('(mini.ai) ' .. msg)) end ```
The `redraw` breaks the behavior.
I think it is better. ```diff diff --git a/lua/mini/ai.lua b/lua/mini/ai.lua index 2a83808..9bfeb2d 100644 --- a/lua/mini/ai.lua +++ b/lua/mini/ai.lua @@ -1846,8 +1846,10 @@ end -- Utilities ------------------------------------------------------------------ H.message = function(msg) - vim.cmd([[echon...
Please test the latest.
Yes. You cannot disable hit-enter-prompt. It is trade-offx
Which behavior is better? * No press-enter, but the messages are not displayed sometimes * Press-enter, all messages are displayed You can choose the one of them.
Please see this. https://github.com/neovim/neovim/pull/20548#issuecomment-1275136105 I think it is the same problem.
It is fixed by #20536
dynamic cmdheight is hard. To change cmdheight is OK. But when it is restored?