aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/python.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-06-19 14:25:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-06-25 18:36:24 +0200
commit5ddb4b672ebbd276b2008fa32466a968453b1780 (patch)
tree0ef1d648b30f2115dd5d6894e5b95f6fee194ce6 /runtime/ftplugin/python.vim
parentb2bf7bcfb15125fe65f3e503af00174f31eb92d8 (diff)
downloadrneovim-5ddb4b672ebbd276b2008fa32466a968453b1780.tar.gz
rneovim-5ddb4b672ebbd276b2008fa32466a968453b1780.tar.bz2
rneovim-5ddb4b672ebbd276b2008fa32466a968453b1780.zip
fix(ui2): "msg_history_show" error while in cmdwin
Problem: Executing :messages while in cmdwin fails: Error in "msg_history_show" UI event handler (ns=nvim.ui2): Lua: …/_core/ui2/messages.lua:699: Invalid 'height': expected positive Integer stack traceback: [C]: in function 'nvim_win_set_config' …/_core/ui2/messages.lua:699: in function 'set_pos' …/_core/ui2/messages.lua:329: in function 'set_target_pos' …/_core/ui2/messages.lua:389: in function 'show_msg' …/_core/ui2/messages.lua:553: in function 'handler' …/_core/ui2.lua:161: in function 'ui_callback' …/_core/ui2.lua:210: in function <…/_core/ui2.lua:202> The bug: when `texth.all` is small (e.g. 0 from a hidden pager whose new content isn't laid out yet), or when the available height after subtracting the cmdwin is small, `math.min(min, …)` can yield 0, and `nvim_win_set_config` rejects `height=0`. Solution: Floor at 1.
Diffstat (limited to 'runtime/ftplugin/python.vim')
0 files changed, 0 insertions, 0 deletions