aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/textobject-lexer.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-13 10:20:55 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-13 10:20:55 +0100
commit053964094e4527100790ae80fd4fd2a50844e207 (patch)
tree3a520e9dc4325e33b94e0e7501758699ad61c15b /lua/plugins/textobject-lexer.lua
parent0f35467395910cc0bed2b40fdbbc91998f97ac41 (diff)
downloadvis-053964094e4527100790ae80fd4fd2a50844e207.tar.gz
vis-053964094e4527100790ae80fd4fd2a50844e207.tar.xz
view: add infrastructure for delayed cursor destruction
At least one cursor (referred to as primary or main cursor) has always to exist. In the sam command language implementation we might want to dispose a cursor even if it is the primary one before later commands will create different ones (e.g. `:x/pattern/ { i/>>>/ a/<<</ }`). This commit introduces view_cursors_dispose_force. If called on the last remaining cursor, its selection is cleared and it is marked for destruction as soon as a new cursor is created. view_cursor_disposed returns the cursor marked for deletion (if any) and clears the descruction flag.
Diffstat (limited to 'lua/plugins/textobject-lexer.lua')
0 files changed, 0 insertions, 0 deletions