Björn Linse
d5162afa2a
anchor float to buffer position
...
vim-patch:8.1.1645: cannot use a popup window for a balloon
2019-09-04 23:57:02 +02:00
Björn Linse
e04b9e7c78
test/ui: update tests for new msg_grid implementation
2019-09-01 15:55:10 +02:00
Björn Linse
628f8f3dfd
ui: transmit "blend=" property of highlight attributes
2019-08-18 13:52:32 +02:00
Björn Linse
6b2d67eb59
test/ui: properly test win_hide by explicitly marking hidden grids
2019-08-17 21:46:11 +02:00
Björn Linse
f9f238b21a
api: nvim_win_open() style="minimal" should disable 'foldcolumn'
2019-08-14 14:49:27 +02:00
Björn Linse
cb9e0a051f
floats: fix 'winblend' on top of doublewidth chars.
...
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.
2019-07-13 14:27:06 +02:00
Björn Linse
7cf7c0a0b8
Merge pull request #9575 from bfredl/redrawdebug
...
ui: implement better redrawdebug for the compositor
2019-07-09 17:56:30 +02:00
Björn Linse
2c2f160a27
ui: add 'redrawdebug' option for flexible debugging of redrawing
2019-07-09 15:13:24 +02:00
Björn Linse
4af1ada9ef
compositor: handle float overlapping left half of doublewidth char
2019-07-09 14:46:58 +02:00
Björn Linse
d11a146516
window: allow resize wincmds for floats
2019-07-08 19:45:57 +02:00
Björn Linse
ef3e32d57e
api/window: add style="minimal" flag to nvim_open_win()
2019-07-07 20:52:15 +02:00
Björn Linse
2a2d288228
compositor: handle scrolling of blended window
2019-06-26 08:37:36 +02:00
Björn Linse
4c4d964eeb
ui: add 'winblend' to support blending of floating windows
...
Also add `hi blend=` attribute to override transparency of indiviual attributes.
2019-06-25 18:08:21 +02:00
Björn Linse
c8acbe3b62
windows: float config changes
...
- 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.
2019-04-14 10:12:09 +02:00
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