From 712adea237e84a744fa3451a6b2cc612d5527656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 19 Sep 2016 14:16:47 +0200 Subject: vis: set correct reference count when splitting windows The refcount is already incremented in the `window_new_file` function, no need to do it again. --- vis.c | 1 - 1 file changed, 1 deletion(-) diff --git a/vis.c b/vis.c index ed14875..289b7b9 100644 --- a/vis.c +++ b/vis.c @@ -277,7 +277,6 @@ bool vis_window_split(Win *original) { map_copy(win->modes[i].bindings, original->modes[i].bindings); } win->file = original->file; - win->file->refcount++; vis_window_syntax_set(win, vis_window_syntax_get(original)); view_options_set(win->view, view_options_get(original->view)); view_cursor_to(win->view, view_cursor_get(original->view)); -- cgit v1.2.3