Marco Hinz
ae88e46563
float: always change to valid windows ( #9878 )
...
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.
2019-04-11 20:20:17 +02:00
Björn Linse
344c69b66b
api/window: validate cursor in nvim_win_set_buf
...
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.
2019-04-08 12:39:08 +02:00
Jit Yao Yap
2a618e0ad0
Update test
2019-03-23 22:14:03 +01:00
Jit Yao Yap
31fa064c68
floating-window.c: fix crash when using inccommand
2019-03-23 22:14:03 +01:00
Björn Linse
ae49e8da58
window: don't crash when closing two floats in a row
...
prevwin can be set to the current window. Then we can't jump to it
after closing a float.
2019-03-23 20:12:37 +01:00
Marco Hinz
3edf7fc64f
api: ignore floating windows for laststatus=1 ( #9771 )
...
ONE_WINDOW considers all windows whereas one_window() ignores floating windows.
Fixes https://github.com/neovim/neovim/issues/9768
2019-03-22 17:17:33 +01:00
Marco Hinz
9ef8d0d6b0
Merge pull request #9726 from mhinz/nvim_win_get_config
...
Closes #9723
2019-03-17 02:34:50 +01:00
Marco Hinz
b557654f36
api: add tests for new code paths
2019-03-16 21:44:15 +01:00
Björn Linse
be8ebba325
Allow using internal popupmenu or ext_popupmenu for wildmenu
...
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor
position), and will allow further expansion (info about items).
2019-03-16 19:53:21 +01:00
Marco Hinz
86992a7bb1
api: numerous small fixes
2019-03-16 15:02:56 +01:00
Marco Hinz
96edbe7b1d
api: add width/height to FloatConfig
2019-03-16 12:35:58 +01:00
Marco Hinz
3c88bbecb8
api: nvim_win_config() -> nvim_win_set_config()
2019-03-16 12:35:58 +01:00
Björn Linse
ca5f919965
compositor: fix rendering issues with floats opened after popupmenu
2019-03-14 10:43:49 +01:00
Björn Linse
81e84f2aae
floats: add NormalFloat highlight and 'nonumber' default
2019-03-12 17:17:54 +01:00
erw7
f719247118
floating-window: fix crash setting cmdheight #9685
...
fixes #9680
2019-03-09 14:10:56 +01:00
Björn Linse
f5d5da3917
buffer: use aucmd_prepbuf() instead of switch_to_win_for_buf()
2019-03-05 15:05:23 +01:00
Björn Linse
c8f310825c
api: add nvim_win_close() to close window by id
2019-03-03 13:09:43 +01:00
Björn Linse
9a1675b065
floats: implement floating windows
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-03-02 16:29:50 +01:00