From f38cdb2d38357f8f01a766ea21cb30661a0d99e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 31 Jul 2015 13:34:27 +0200 Subject: vis: cleanup handling of charwise/linewise motions Also text objects in visual mode should now work better. --- editor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editor.h') 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; -- cgit v1.2.3