neovim/test/functional/ui
Sean Dewar a47be0b2d9
fix(window): prevent win_size_restore from changing cmdheight
Currently it only skips if `Rows` changed, but it's possible for the height of
the usable area for windows to change (e.g: via `&ch`, `&stal` or `&ls`), which
can cause the value of `&cmdheight` to change when the sizes are restored.

This is a Vim bug, so I've submitted a PR there too. No telling when it'll be
merged though, given the current lack of activity there.

`ROWS_AVAIL` is convenient here, but also subtracts the `global_stl_height()`.
Not ideal, as we also care about the height of the last statusline for other
values of `&ls`. Meh.

Introduce `last_stl_height` for getting the height of the last statusline and
use it in `win_size_save/restore` and `last_status` (means
`last_status_rec`'s `statusline` argument will now be true if `&ls` is 3,
but that does not change the behaviour).

Also corrects the logic in `comp_col` to not assume there's a last statusline
if `&ls` is 1 and the last window is floating.
2023-07-26 20:44:46 +01:00
..
bufhl_spec.lua feat(extmarks): extend nvim_buf_get_extmarks() 2023-04-01 13:59:03 +02:00
cmdline_highlight_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
cmdline_spec.lua fix(window): prevent win_size_restore from changing cmdheight 2023-07-26 20:44:46 +01:00
cursor_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
decorations_spec.lua feat(decoration_provider): log errors as error messages 2023-07-19 16:56:25 +01:00
diff_spec.lua vim-patch:9.0.1506: line number not displayed when using 'smoothscroll' (#23453) 2023-05-03 07:21:09 +08:00
embed_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
float_spec.lua fix(events)!: trigger CursorMoved later on switching window (#23711) 2023-06-04 09:09:22 +08:00
fold_spec.lua fix(drawline): fix missing Visual hl on double-width fold char (#24308) 2023-07-11 13:16:31 +08:00
highlight_spec.lua test(extmarks): add tests for #14201 #20004 #20885 (#23794) 2023-05-28 16:28:10 +08:00
hlstate_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
inccommand_spec.lua fix(inccommand): block errors when parsing command line again (#24374) 2023-07-17 10:15:45 +08:00
inccommand_user_spec.lua test(inccommand): add a test for #20248 (#24489) 2023-07-26 11:58:26 +08:00
input_spec.lua fix(tests): remove irrelevant usage of display-=msgsep 2022-08-17 23:44:49 +02:00
linematch_spec.lua feat(diff): grouping optimization for linematch algorithm 2023-06-07 13:29:23 +01:00
messages_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
mode_spec.lua vim-patch:9.0.1385: g'Esc is considered an error (#22544) 2023-03-06 07:52:11 +08:00
mouse_spec.lua fix(mouse): drag vsep of window with 'statuscolumn' (#24462) 2023-07-24 18:16:53 +08:00
multibyte_spec.lua fix(charset): fix wrong display of 0xffff (#24158) 2023-06-26 11:52:52 +08:00
multigrid_spec.lua fix(ui): delay win_viewport until screen update #24182 2023-07-05 06:31:34 -07:00
options_spec.lua refactor(tui): use nvim_echo() for verbose terminfo 2022-12-20 21:43:42 +01:00
output_spec.lua test: fix dependencies between test cases (#23343) 2023-04-27 15:51:44 +08:00
popupmenu_spec.lua fix(mouse): fix popup menu position check with winbar (#23456) 2023-05-03 10:29:19 +08:00
quickfix_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
screen_basic_spec.lua fix(events): trigger VimResume on next UI request (#24426) 2023-07-23 07:16:41 +08:00
screen.lua fix(ui): don't send empty grid_line with redrawdebug=compositor (#23899) 2023-06-04 10:49:02 +08:00
searchhl_spec.lua fix(highlight): make CurSearch work properly with 'winhl' (#24448) 2023-07-23 21:36:32 +08:00
sign_spec.lua fix(statuscolumn): fix sign column highlights (#21727) 2023-01-11 09:52:11 +08:00
spell_spec.lua vim-patch:9.0.1595: line pointer becomes invalid when using spell checking 2023-06-01 14:30:21 +02:00
statuscolumn_spec.lua fix(statuscolumn): don't update clicks if current width is 0 (#24459) 2023-07-24 15:18:24 +08:00
statusline_spec.lua test(statusline): add test with control characters (#24197) 2023-06-29 11:18:56 +08:00
syntax_conceal_spec.lua test: convert another test in test_matchadd_conceal.vim to Lua (#21353) 2022-12-09 10:37:53 +08:00
tabline_spec.lua fix(statusline): fill for double-width char after moving items (#24207) 2023-06-30 08:36:09 +08:00
title_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
wildmode_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
winbar_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00