diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2016-02-27 16:11:42 +0100 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2016-02-27 16:11:42 +0100 |
| commit | 7b5f24fb51edddbe479e85bb01434645a71799b3 (patch) | |
| tree | 1aedac5dc4f644c7ca161090592373b4ca869bb5 /evil-macros.el | |
| parent | 36e4b66f3c6281bc10f628ded649b05197711602 (diff) | |
Do not re-expand range returned by text-objects
The range returned by text-objects must be taken literally for operators.
This allows to operator on ranges that cannot correspond to visual selections,
e.g. `cib` works correctly on empty parentheses.
Diffstat (limited to 'evil-macros.el')
| -rw-r--r-- | evil-macros.el | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/evil-macros.el b/evil-macros.el index 38d1934..e90d79b 100644 --- a/evil-macros.el +++ b/evil-macros.el @@ -433,9 +433,6 @@ if COUNT is positive, and to the left of it if negative. (if extend (setq range (evil-range-union range selection)) (evil-set-type range (evil-type range type))) - ;; ensure the range is properly expanded - (evil-contract-range range) - (evil-expand-range range) ;; possibly convert to linewise (when (eq evil-this-type-modified 'line) (setq range (evil-text-object-make-linewise range))) |
