aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
Commit message (Collapse)AuthorAge
* fix(options): properly free string options (#19510)zeertzjq2022-07-27
|
* test(float_spec): make indent more consistentzeertzjq2022-07-10
|
* fix(float): fix mouse drag position if float window turned to a splitzeertzjq2022-07-10
|
* fix(float): fix glitch when making float window with border a splitzeertzjq2022-07-10
|
* fix(float): fix float window with winbar cannot have screen heightzeertzjq2022-07-10
|
* fix(float): fix float window border drawing with winbarzeertzjq2022-07-10
|
* feat: add preview functionality to user commandsFamiu Haque2022-05-31
| | | | Adds a Lua-only `preview` flag to user commands which allows the command to be incrementally previewed like `:substitute` when 'inccommand' is set.
* fix(mouse): fix mouse drag position with winbar or border in multigridzeertzjq2022-05-19
|
* fix(ui): make winbar work with floats and multigridbfredl2022-05-18
|
* refactor(ui)!: link `VertSplit` to `Normal` by defaultFamiu Haque2022-05-15
| | | | | Avoids using `gui=reverse` on `VertSplit` and makes window separators look much nicer by default.
* test: correct order of arguments to eq() and neq()zeertzjq2022-04-26
|
* fix(float): do not switch window before deleting last listed buffer (#17840)zeertzjq2022-03-24
| | | | Just allow close_windows() to close the current window instead. This fixes wrong working directory or autocommands not being triggered.
* fix(float): don't always switch window when deleting last listed buffer (#17836)zeertzjq2022-03-24
|
* test: add test for deleting last listed buffer when there are floats (#17833)zeertzjq2022-03-24
|
* fix(float): make laststatus=1 behave consistently with floating windowszeertzjq2022-03-23
|
* fix(float): handle buffer deletion with floating windowszeertzjq2022-03-23
|
* fix(win_close): count the window the be closed instead of curwinzeertzjq2022-03-23
|
* fix: close floating windows when calling win_close()Rom Grk2022-02-10
|
* fix(float): skip non-focusable windows for :windo (#15378)Daniel Steinberg2021-11-11
|
* fix(float): redraw if w_border_adj changedzeertzjq2021-10-28
|
* fix(float): fix potential heap corruption in win_redr_borderzeertzjq2021-10-28
|
* fix(mouse): correct dragged position in composed layoutBjörn Linse2021-10-04
|
* Merge pull request #15516 from bfredl/keysetBjörn Linse2021-10-03
|\ | | | | refactor(api): Represent option dicts as a structs in C and reduce conversion overhead from lua
| * refactor(api): handle option dicts properlyBjörn Linse2021-10-03
| | | | | | | | | | | | | | Do not copy a lot of lua strings (dict keys) to just strequal() them Just compare them directly to a dedicated hash function. feat(generators): HASHY McHASHFACE
* | fix(nvim_open_win): crash if autocmds delete buffer/window #15549Sean Dewar2021-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | win_set_buf can trigger autocmds if noautocmd=false. If they close the window, code afterwards will dereference the freed win_T* wp pointer. This interaction became possible after commit 1def3d1542d6a65f057e743faea39a760b50db87. The reason deleting curbuf crashes, and not the buf passed to `nvim_open_win`, is because the float initially edits curbuf (`win_init`) until it's later set to edit buf (windows from `:new` and `:split <buf>` behave similiarly: approx. `:split`, then `:buffer <buf>`). `do_buffer` closes windows when their edited buffer is deleted (unless it's the only window; N/A for floats), so the float closes when curbuf is deleted, so we need to check `win_valid` after `win_set_buf` too. Closes #15548
* | fix(float)!: always anchor to corner of window including border #15832zeertzjq2021-10-02
|/ | | | | | | | | | N, W, S, E are all inclusive, i.e., always anchor to the exact corner of the window (including border). This line may also need change in this case (change 0 to -1): This is most consistent and easiest to reason about, especially with GUIs whose border do not need to have width/height of 1/1 in cell units. Fix #15789
* Merge pull request #14770 from andrew-pa/fix13403Björn Linse2021-09-12
|\ | | | | Fix relative float positioning
| * fix(windowing): positioning of relative floatsandrew-pa2021-09-08
| | | | | | | | | | | | Fix relative floating windows so that they open in the correct position relative to each other. Also make sure that their positions are correct immediately after creation without a redraw.
* | feat(api): win_viewport also sends line_count #15613Yatao Li2021-09-10
| |
* | refactor(tests): use assert_alive() #15546Justin M. Keyes2021-09-01
| |
* | test: update tests to work with 'hidden'Gregory Anders2021-08-18
| |
* | fix(sign): reset auto sign column with minimum in float win minimal styleSirisak Lueangsaksri2021-08-09
| |
* | fix(api/win_get_config): include z-indexSean Dewar2021-06-19
| |
* | feat(float): add rounded borders presetChristian Clason2021-06-14
| | | | | | | | | | | | | | | | Add `borders = "rounded"` preset for `nvim_open_win`, equivalent to border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"} Also add undocumented "solid" preset to docs.
* | fix(ui): Fix pum incorrect position in multigrid modeSerg Tereshchenko2021-06-12
|/ | | | Refs #12985
* Merge pull request #14468 from bfredl/zindexBjörn Linse2021-05-15
|\ | | | | [WIP] z-index!
| * floats: z-indexBjörn Linse2021-05-15
| |
* | vim-patch:8.1.1967: line() only works for the current windowJan Edmund Lazo2021-05-12
|/ | | | | | Problem: Line() only works for the current window. Solution: Add an optional argument for the window to use. https://github.com/vim/vim/commit/8e0a8e7eb7c177807f44db6b76d8e52314248ab5
* Merge pull request #13664 from ivechan/win_exectuteJan Edmund Lazo2021-05-07
|\ | | | | vim-patch:8.1.{1418,1425,1832,2124},8.2.{0137, 2340}
| * vim-patch:8.1.1418: win_execute() is not implemented yetjing2021-05-06
| | | | | | | | | | | | Problem: Win_execute() is not implemented yet. Solution: Implement it. https://github.com/vim/vim/commit/868b7b6712ea4f2232eeeae18c5cbbbddf2ee84d
* | Merge pull request #14483 from mjlbach/floating_window_border_fixBjörn Linse2021-05-05
|\ \ | | | | | | window.c: fix floating window border width calculation
| * | tests: floating windows terminate border on edge of viewport when window ↵Michael Lingelbach2021-05-04
| |/ | | | | | | extends past viewport
* / ui_compositior: handle multiple displayed floats in the same tickBjörn Linse2021-04-26
|/ | | | | problem: the order of non-focuesed float opened before focused float is wrong (sunjon) solution: check curwin and correct the order (bfredl)
* float: add "solid" border style (#14310)Marco Hinz2021-04-12
| | | | | | It looks solid with the default `FloatBorder` group. If you set the bgcolor of FloatBorder to the same color as for FloatNormal, you effectively get an "1-cell padding".
* Border: allow to enable/disable specific border edgesBjörn Linse2021-04-04
|
* floats: handle interaction with popupmenu and border correctlyBjörn Linse2021-03-25
|
* floats: add borders (MS-DOS MODE)Björn Linse2021-03-22
|
* 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