diff options
| author | Evgeni Kolev <evgenysw@gmail.com> | 2017-04-10 18:33:38 +0300 |
|---|---|---|
| committer | Evgeni Kolev <evgenysw@gmail.com> | 2017-04-17 16:05:15 +0300 |
| commit | b3e6f7d75774cfbfa437ea5f89cbed1496e34209 (patch) | |
| tree | bee72ea91e971b4bd55b52397beeb6ed406b520e /evil-commands.el | |
| parent | 273a714e2d073257f6604d03be53c5fd784117c4 (diff) | |
:global should use last pattern if none given
Diffstat (limited to 'evil-commands.el')
| -rw-r--r-- | evil-commands.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el index efc5b45..44ec3aa 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -3502,6 +3502,9 @@ This is the same as :%s//~/&" (user-error "No pattern given")) (unless command (user-error "No command given")) + ;; TODO: `evil-ex-make-substitute-pattern' should be executed so + ;; :substitute can re-use :global's pattern depending on its `r' + ;; flag. This isn't supported currently but should be simple to add (evil-with-single-undo (let ((case-fold-search (eq (evil-ex-regex-case pattern 'smart) 'insensitive)) |
