aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-04-13 14:25:15 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-04-14 10:12:09 +0200
commitc8acbe3b623a4d7636e88b30f779c03845cf548f (patch)
tree7e8698c31b6e4988a10eb4fb4160ee9339b4c206 /src/nvim/screen.c
parentd08692a8246039b938b5645a6c01b4ff7f51671e (diff)
downloadrneovim-c8acbe3b623a4d7636e88b30f779c03845cf548f.tar.gz
rneovim-c8acbe3b623a4d7636e88b30f779c03845cf548f.tar.bz2
rneovim-c8acbe3b623a4d7636e88b30f779c03845cf548f.zip
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.
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 55f3417bb9..b4ebf2ece5 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -363,7 +363,7 @@ void update_screen(int type)
need_wait_return = FALSE;
}
- if (type >= NOT_VALID) {
+ if (type >= CLEAR || !default_grid.valid) {
ui_comp_set_screen_valid(false);
}
win_ui_flush_positions();