diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-07-14 12:17:41 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-07-14 12:19:33 +0200 |
| commit | 57dcdd656eaa1fa8d2143ec0f6115de1eb65021f (patch) | |
| tree | 810359623b593859b5de33899155a48c907b7a98 /vis-core.h | |
| parent | bacf932f177309e88d931d45d3a63749de2446a5 (diff) | |
| download | vis-57dcdd656eaa1fa8d2143ec0f6115de1eb65021f.tar.gz vis-57dcdd656eaa1fa8d2143ec0f6115de1eb65021f.tar.xz | |
vis: use distinct mark to save last selections
This partially reverts f9e2b884c15919757651db8b10c033a344a19e75
further jumps after leaving visual mode should not break `gv`.
Diffstat (limited to 'vis-core.h')
| -rw-r--r-- | vis-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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*); |
