mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
65ff263668
commit
488ad07cc5
@ -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)))
|
||||
|
Reference in New Issue
Block a user