aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-31 13:34:27 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-31 15:39:12 +0200
commitf38cdb2d38357f8f01a766ea21cb30661a0d99e8 (patch)
treefef5d07b8c47ad3a7c7f9d18e957226cafc53833 /editor.h
parent45994302f232fc4b13fde1b85f512f9238d36613 (diff)
downloadvis-f38cdb2d38357f8f01a766ea21cb30661a0d99e8.tar.gz
vis-f38cdb2d38357f8f01a766ea21cb30661a0d99e8.tar.xz
vis: cleanup handling of charwise/linewise motions
Also text objects in visual mode should now work better.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor.h b/editor.h
index 9c462b3..2d0819b 100644
--- a/editor.h
+++ b/editor.h
@@ -67,7 +67,6 @@ typedef struct {
size_t pos; /* at which byte from the start of the file should the operation start? */
bool linewise; /* should the changes always affect whole lines? */
const Arg *arg; /* arbitrary arguments */
- Cursor *cursor; /* cursor (if any) which issued this operator */
} OperatorContext;
typedef struct {
@@ -100,7 +99,7 @@ typedef struct {
typedef struct { /** collects all information until an operator is executed */
int count;
- bool linewise;
+ int type;
const Operator *op;
const Movement *movement;
const TextObject *textobj;