mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix: doom-column -> doom-modeline-column.
This commit is contained in:
parent
c712afc625
commit
2c7c908aa0
1 changed files with 3 additions and 2 deletions
|
@ -696,6 +696,7 @@ icons."
|
|||
;;
|
||||
|
||||
(defsubst doom-modeline-column (pos)
|
||||
"Get the column of the position `POS'."
|
||||
(save-excursion (goto-char pos)
|
||||
(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)))))
|
||||
(concat (cond ((or (bound-and-true-p rectangle-mark-mode)
|
||||
(eq 'block evil-visual-selection))
|
||||
(let ((cols (abs (- (doom-column end)
|
||||
(doom-column beg)))))
|
||||
(let ((cols (abs (- (doom-modeline-column end)
|
||||
(doom-modeline-column beg)))))
|
||||
(format "%dx%dB" lines cols)))
|
||||
((eq evil-visual-selection 'line)
|
||||
(format "%dL" lines))
|
||||
|
|
Loading…
Reference in a new issue