aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-03-04 17:52:55 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-03-12 12:49:11 +0100
commitaf966afaa448dc78eb065e61be36ac9a577b0419 (patch)
treefccf058a8e9af45d552199e530280364a4a021ba /src/nvim/window.c
parent9312e2d06ae29db2e21b575b007c29da514e5df3 (diff)
downloadrneovim-af966afaa448dc78eb065e61be36ac9a577b0419.tar.gz
rneovim-af966afaa448dc78eb065e61be36ac9a577b0419.tar.bz2
rneovim-af966afaa448dc78eb065e61be36ac9a577b0419.zip
window: simplify logic for entering new float
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 83ddf534cf..25e6bfc565 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -541,9 +541,7 @@ static void cmd_with_count(char *cmd, char_u *bufp, size_t bufsize,
win_T *win_new_float(win_T *wp, int width, int height, FloatConfig config,
Error *err)
{
- bool new = false;
if (wp == NULL) {
- new = true;
wp = win_alloc(lastwin_nofloating(), false);
win_init(wp, curwin, 0);
} else {
@@ -572,9 +570,6 @@ win_T *win_new_float(win_T *wp, int width, int height, FloatConfig config,
win_config_float(wp, width, height, config);
wp->w_pos_changed = true;
redraw_win_later(wp, VALID);
- if (new) {
- win_enter(wp, false);
- }
return wp;
}