diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2021-02-20 22:56:00 +0000 |
|---|---|---|
| committer | Tom Dalziel <tom_dl@hotmail.com> | 2021-02-28 15:40:26 +0000 |
| commit | 22a26d28d50f6ed5180417a9ef614f173c1709ac (patch) | |
| tree | 8ec45113d327476b6387f8fdce67378afbc6238b /evil-types.el | |
| parent | 881a9ef5b92678c420617bfd60434c99ffb924b6 (diff) | |
Fix evil-goto-char and add `go` keybinding
Diffstat (limited to 'evil-types.el')
| -rw-r--r-- | evil-types.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/evil-types.el b/evil-types.el index d72466e..fe4972b 100644 --- a/evil-types.el +++ b/evil-types.el @@ -342,6 +342,14 @@ If visual state is inactive then those values are nil." :ex-arg t (list (when (evil-ex-p) evil-ex-argument))) +(evil-define-interactive-code "<N>" (prompt) + "Prefix argument, ex-arg or minibuffer input, converted to number" + (list (cond + (current-prefix-arg (prefix-numeric-value current-prefix-arg)) + ((and evil-ex-argument (evil-ex-p)) (string-to-number evil-ex-argument)) + ((evil-ex-p) nil) + (t (string-to-number (read-string prompt)))))) + (evil-define-interactive-code "<f>" "Ex file argument." :ex-arg file |
