diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-05-18 17:12:27 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-05-30 16:27:45 +0200 |
| commit | d032bb195d80a06cfe873353a7242883b423c070 (patch) | |
| tree | 9c5e247773017c54d7f67161f1dcbc02787be083 /sam.c | |
| parent | fffa37b3d403719a7737c7035e5dc6ab8683fa41 (diff) | |
| download | vis-d032bb195d80a06cfe873353a7242883b423c070.tar.gz vis-d032bb195d80a06cfe873353a7242883b423c070.tar.xz | |
sam: normalize selections after command execution
As a trivial example if multiple selections exist running a command like
:,
should merge them.
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1244,6 +1244,9 @@ enum SamError sam_cmd(Vis *vis, const char *s) { vis_file_snapshot(vis, file); } + for (Win *win = vis->windows; win; win = win->next) + view_selections_normalize(win->view); + if (vis->win) { if (primary_pos != EPOS && view_selection_disposed(vis->win->view)) view_cursor_to(vis->win->view, primary_pos); |
