Skip to content

Commit 28743d8

Browse files
committed
Simplify tab space check
1 parent b77e2ab commit 28743d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jcs-echobar.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
(defun jcs-echobar--buffer-spaces-or-tabs ()
125125
"Check if buffer using spaces or tabs."
126-
(if (= (how-many "^\t" (point-min) (point-max)) 0) "SPC" "TAB"))
126+
(if indent-tabs-mode "TAB" "SPC"))
127127

128128
;;
129129
;; (@* "Core" )

0 commit comments

Comments
 (0)