From 2c7c908aa05cf18aab062d4ec60564e574965061 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 27 Jun 2018 01:34:08 +0800 Subject: [PATCH] Fix: doom-column -> doom-modeline-column. --- doom-modeline.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index fd03127..f600bca 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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))