diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2022-01-13 19:46:15 +0000 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-01-13 21:07:26 +0100 |
| commit | 3d62324cc97d7340e21672d39b433883ce8cf363 (patch) | |
| tree | 40b26ceb298df9f36b48c8a1ae3b633df1fb0cae | |
| parent | a5fd96dadc44ab3a00c354aed33cb576f65a50de (diff) | |
Add C-l register to cmdline
| -rw-r--r-- | evil-common.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/evil-common.el b/evil-common.el index 1c07d28..7c8b330 100644 --- a/evil-common.el +++ b/evil-common.el @@ -2172,6 +2172,11 @@ The following special registers are supported. (user-error "Register <C-f> only available in ex state")) (with-current-buffer evil-ex-current-buffer (thing-at-point 'filename))) + ((eq register ?\C-L) + (unless (evil-ex-p) + (user-error "Register <C-l> only available in ex state")) + (with-current-buffer evil-ex-current-buffer + (replace-regexp-in-string "\n\\'" "" (thing-at-point 'line)))) ((eq register ?%) (or (buffer-file-name (and (evil-ex-p) (minibufferp) |
