aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-19 13:11:52 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-19 13:42:25 +0200
commit2c8fcaa8fbb17b99aa5b0f8bfbbe0451dfa509f3 (patch)
tree1160dd96040c19f2a6da365e29240d978c6067ca /view.h
parenta2316394d35eb548545730cbf2b57b27e733214c (diff)
downloadvis-2c8fcaa8fbb17b99aa5b0f8bfbbe0451dfa509f3.tar.gz
vis-2c8fcaa8fbb17b99aa5b0f8bfbbe0451dfa509f3.tar.xz
vis: restructure register handling
Decouple register content from cursors. Previously each cursor had exactly one corresponding register. Now each register can save a list of values whose lifetime is not tied to the cursor. If multiple cursors exist and a put with a register holding only a single value is performed, then this value is inserted at every cursor location. If there are fewer values available than cursors, then only the matching ones will be used. If a register holding multiple values is inserted in a single cursor context, only the first value will be used. Another option would be to join all existing values. The details of this behavior might be changed in the future. <C-r> in insert mode has not yet been adapted and register handling in general needs to be cleaned up further. Fix #527
Diffstat (limited to 'view.h')
-rw-r--r--view.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/view.h b/view.h
index c382505..262c581 100644
--- a/view.h
+++ b/view.h
@@ -160,8 +160,6 @@ void view_cursors_to(Cursor*, size_t pos);
void view_cursors_scroll_to(Cursor*, size_t pos);
/* place cursor on given (line, column) pair, both values are 1-based */
void view_cursors_place(Cursor*, size_t line, size_t col);
-/* get register associated with this register */
-Register *view_cursors_register(Cursor*);
/* start selected area at current cursor position. further cursor movements
* will affect the selected region. */
void view_cursors_selection_start(Cursor*);