Fix extract-rectangle-line wholenump error

This commit is contained in:
Henrik Lissner 2015-12-04 03:31:54 -05:00
parent 919468e7e6
commit 17403015fb
2 changed files with 8 additions and 0 deletions

View File

@ -84,6 +84,13 @@
(when (minibuffer-window-active-p (minibuffer-window))
(narf-minibuffer-quit)))
;; Monkey-patch an error triggered randomly during column-selection caused
;; by `extract-rectangle-line' receiving a float:
;; evil-move-to-column: Wrong type argument: wholenump, 12.0
(defun narf*evil-extract-rectangle-line-fix (args)
(mapcar (lambda (i) (if (numberp i) (truncate i) i)) args))
(advice-add 'extract-rectangle-line :filter-args 'narf*evil-extract-rectangle-line-fix)
;; buffer-local ex commands, thanks to:
;; http://emacs.stackexchange.com/questions/13186
(defun evil-ex-define-cmd-local (cmd function)

View File

@ -29,6 +29,7 @@ buffer to display.")
"*Buffer List*" "*Ibuffer*" "*esh command on file*"
"*WoMan-Log*" "*compilation*" "*use-package*"
"*quickrun*" "*eclim: problems*" "*Flycheck errors*"
"*popwin-dummy*"
;; Helm
"*helm*" "*helm recentf*" "*helm projectile*" "*helm imenu*"
"*helm company*" "*helm buffers*" "*Helm Css SCSS*"