aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
Commit message (Collapse)AuthorAge
...
* screen: make ui_compositor aware of the intended size of a floatchentau2021-03-11
|
* Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode ↵Jan Edmund Lazo2020-12-31
| | | | | | | | with mapped Esc" This reverts commit 44bb7147e40743d9a70ee3a2663a7a7dacec7b13. Avoid regression mentioned in https://github.com/neovim/neovim/commit/c64cce906e7ed828d331e1786c985ff7aa734546#commitcomment-45554271
* vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped EscJan Edmund Lazo2020-12-26
| | | | | | Problem: Mode is not cleared when leaving Insert mode with mapped Esc. Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269) https://github.com/vim/vim/commit/4c25bd785aa8b565bf973cbba12ed36b76daaa4f
* fix(floatwin): don't always use winheightThomas Vigouroux2020-11-16
|
* test/vim.validate(): assert normalized stacktraceJustin M. Keyes2020-10-05
| | | | | | | - The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches()
* Reuse inccommand preview window (fix #11529) (#12612)Ville Hakulinen2020-07-15
| | | | | | | | | | | | | | | | | | | | | | | * Reuse inccommand preview window Currently, show_sub (inside ex_substitute) creates a new split on each run for its existing buffer, and ex_substitute calls close_windows for it. This functionality seems to relay in delayed operations on window structures where the close event on the newest window is "cancelled" by win_grid_alloc. But for multigrid, there is optimization in place in win_grid_alloc which causes any (unnecessary?) allocations to be skipped, and thus inccommand preview window is not preserved but closed immediately. Alternative fix would be to remove said optimization, but the whole "lets create a new split each time and trash the earlier window" seems too wasteful. Fix #11529 * Update failing test The failing test sets inccommand=split and does `:%s/.`, but isn't expecting to get any contents for the preview window, other than the windows status line. Update the test to include the preview window contents too.
* api/ui: win_viewport event for visible range and cursor position in windowBjörn Linse2020-04-01
|
* floatwin: show error if window is closed immediately #11476Justin M. Keyes2019-11-29
| | | | | | | | | Autocmds may close window while it is being entered, then win_set_minimal_style(wp) operates on an invalid pointer. We could silently ignore this instead, but it is unlikely to be intentional, so it is more useful to show an error. fix #11383
* Clear 'cc' in nvim_open_win 'minimal' style #11361 (#11427)Dennis B2019-11-22
| | | | | | | * Clear 'cc' in nvim_open_win 'minimal' style #11361 Add 'colorcolumn' to the list of options that should be cleared when creating a 'minimal'-style floating window.
* docJustin M. Keyes2019-09-11
| | | | | fix #10127 fix #5972
* test: Rename meth_pcall to pcall_errJustin M. Keyes2019-09-06
| | | | | | | - Rename `meth_pcall`. - Make `pcall_err` raise an error if the function does not fail. - Add `vim.pesc()` to treat a string as literal where a Lua pattern is expected.
* anchor float to buffer positionBjörn Linse2019-09-04
| | | | vim-patch:8.1.1645: cannot use a popup window for a balloon
* test/ui: update tests for new msg_grid implementationBjörn Linse2019-09-01
|
* ui: transmit "blend=" property of highlight attributesBjörn Linse2019-08-18
|
* test/ui: properly test win_hide by explicitly marking hidden gridsBjörn Linse2019-08-17
|
* api: nvim_win_open() style="minimal" should disable 'foldcolumn'Björn Linse2019-08-14
|
* floats: fix 'winblend' on top of doublewidth chars.Björn Linse2019-07-13
| | | | | | | | | The interaction between 'winblend' and doublewidth chars in the background does not look very good. But check no chars get incorrectly placed at least. Also check that hidden EndOfBuffer region (from style="minimal") blends correctly.
* Merge pull request #9575 from bfredl/redrawdebugBjörn Linse2019-07-09
|\ | | | | ui: implement better redrawdebug for the compositor
| * ui: add 'redrawdebug' option for flexible debugging of redrawingBjörn Linse2019-07-09
| |
* | compositor: handle float overlapping left half of doublewidth charBjörn Linse2019-07-09
|/
* window: allow resize wincmds for floatsBjörn Linse2019-07-08
|
* api/window: add style="minimal" flag to nvim_open_win()Björn Linse2019-07-07
|
* compositor: handle scrolling of blended windowBjörn Linse2019-06-26
|
* ui: add 'winblend' to support blending of floating windowsBjörn Linse2019-06-25
| | | | Also add `hi blend=` attribute to override transparency of indiviual attributes.
* windows: float config changesBjörn Linse2019-04-14
| | | | | | | | | | - Allow floating windows of width 1. #9846 - For a new floating window the size must be specified. Later on we might try to calculate a reasonable size by buffer contents - Remember the configured size of a window, just like its position. - Make get_config and set_config more consistent. Handle relative='' properly in set_config. get_config doesn't return keys that don't make sense for a non-floating window. - Don't use width=0 for non-changed width, just omit the key.
* float: always change to valid windows (#9878)Marco Hinz2019-04-11
| | | | | | | | Using `:wincmd j` and friends doesn't make much sense to a floating window. For convenience though, any direction will simply change to the previous window. Make sure the previous window is valid, not the current window, and not another floating window. Change to the first window (which is never a floating window) otherwise.
* api/window: validate cursor in nvim_win_set_bufBjörn Linse2019-04-08
| | | | | | validate_cursor() is called regularly, but only for the current window. When changing the buffer for a non-current window, we need to invoke it in the context of that window.
* Update testJit Yao Yap2019-03-23
|
* floating-window.c: fix crash when using inccommandJit Yao Yap2019-03-23
|
* window: don't crash when closing two floats in a rowBjörn Linse2019-03-23
| | | | | prevwin can be set to the current window. Then we can't jump to it after closing a float.
* api: ignore floating windows for laststatus=1 (#9771)Marco Hinz2019-03-22
| | | | | ONE_WINDOW considers all windows whereas one_window() ignores floating windows. Fixes https://github.com/neovim/neovim/issues/9768
* Merge pull request #9726 from mhinz/nvim_win_get_configMarco Hinz2019-03-17
|\ | | | | Closes #9723
| * api: add tests for new code pathsMarco Hinz2019-03-16
| |
| * api: numerous small fixesMarco Hinz2019-03-16
| |
| * api: add width/height to FloatConfigMarco Hinz2019-03-16
| |
| * api: nvim_win_config() -> nvim_win_set_config()Marco Hinz2019-03-16
| |
* | Allow using internal popupmenu or ext_popupmenu for wildmenuBjörn Linse2019-03-16
|/ | | | | Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor position), and will allow further expansion (info about items).
* compositor: fix rendering issues with floats opened after popupmenuBjörn Linse2019-03-14
|
* floats: add NormalFloat highlight and 'nonumber' defaultBjörn Linse2019-03-12
|
* floating-window: fix crash setting cmdheight #9685erw72019-03-09
| | | fixes #9680
* buffer: use aucmd_prepbuf() instead of switch_to_win_for_buf()Björn Linse2019-03-05
|
* api: add nvim_win_close() to close window by idBjörn Linse2019-03-03
|
* floats: implement floating windowsBjörn Linse2019-03-02
Co-Author: Dongdong Zhou <dzhou121@gmail.com>