fix(evil): define *-any-quote directly
Defining `*-any-quote` objects via the exiting `*-block` helpers leads to incorrect behaviour, where the trailing boundary is also included as part of the selection (cursor on `|`, selection between `|`): ``` start: "te|st" v i q: "|test"| ``` The expected behaviour is the same as `v i "`: ``` start: "te|st" v i q: "|test|" ``` Fix: #5698
This commit is contained in:
parent
65ff263668
commit
488ad07cc5
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ This excludes the protocol and querystring."
|
|||
("`" . "`")
|
||||
("‘" . "’")
|
||||
("“" . "”"))))
|
||||
(evil-textobj-anyblock-inner-block count beg end type)))
|
||||
(evil-textobj-anyblock--make-textobj beg end type count nil)))
|
||||
|
||||
;;;###autoload (autoload '+evil:outer-any-quote "editor/evil/autoload/textobjects" nil nil)
|
||||
(evil-define-text-object +evil:outer-any-quote (count &optional beg end type)
|
||||
|
@ -65,4 +65,4 @@ This excludes the protocol and querystring."
|
|||
("`" . "`")
|
||||
("‘" . "’")
|
||||
("“" . "”"))))
|
||||
(evil-textobj-anyblock-a-block count beg end type)))
|
||||
(evil-textobj-anyblock--make-textobj beg end type count t)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue