Fix: doom-column -> doom-modeline-column.

This commit is contained in:
Vincent Zhang 2018-06-27 01:34:08 +08:00
parent c712afc625
commit 2c7c908aa0

View file

@ -696,6 +696,7 @@ icons."
;; ;;
(defsubst doom-modeline-column (pos) (defsubst doom-modeline-column (pos)
"Get the column of the position `POS'."
(save-excursion (goto-char pos) (save-excursion (goto-char pos)
(current-column))) (current-column)))
@ -715,8 +716,8 @@ lines are selected, or the NxM dimensions of a block selection."
(let ((lines (count-lines beg (min end (point-max))))) (let ((lines (count-lines beg (min end (point-max)))))
(concat (cond ((or (bound-and-true-p rectangle-mark-mode) (concat (cond ((or (bound-and-true-p rectangle-mark-mode)
(eq 'block evil-visual-selection)) (eq 'block evil-visual-selection))
(let ((cols (abs (- (doom-column end) (let ((cols (abs (- (doom-modeline-column end)
(doom-column beg))))) (doom-modeline-column beg)))))
(format "%dx%dB" lines cols))) (format "%dx%dB" lines cols)))
((eq evil-visual-selection 'line) ((eq evil-visual-selection 'line)
(format "%dL" lines)) (format "%dL" lines))