vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 04d6bd0635b1b8c4e835e624d32cfb4eee9e365f parent b9c8f08c91d21c3f252afac9f8d761e938350d77 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 19 Sep 2016 14:16:47 +0200 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. Diffstat:
| M | vis.c | | | 1 | - |
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git 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));