From 57dcdd656eaa1fa8d2143ec0f6115de1eb65021f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 14 Jul 2017 12:17:41 +0200 Subject: vis: use distinct mark to save last selections This partially reverts f9e2b884c15919757651db8b10c033a344a19e75 further jumps after leaving visual mode should not break `gv`. --- vis-core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index a4ebac1..900f498 100644 --- a/vis-core.h +++ b/vis-core.h @@ -159,6 +159,7 @@ struct Win { File *file; /* file being displayed in this window */ View *view; /* currently displayed part of underlying text */ MarkList jumplist; /* LRU jump management */ + Array saved_selections; /* register used to store selections */ Mode modes[VIS_MODE_INVALID]; /* overlay mods used for per window key bindings */ Win *parent; /* window which was active when showing the command prompt */ Mode *parent_mode; /* mode which was active when showing the command prompt */ @@ -264,6 +265,7 @@ Mode *mode_get(Vis*, enum VisMode); void mode_set(Vis *vis, Mode *new_mode); Macro *macro_get(Vis *vis, enum VisRegister); +void window_selection_save(Win *win); Win *window_new_file(Vis*, File*, enum UiOption); const char *file_name_get(File*); -- cgit v1.2.3