(put-text-property (point-min) (point-max) 'line-prefix " ")
(should (= (company--column) 2)))))
+(ert-deftest company-column-with-tabs ()
+ :tags '(interactive)
+ (with-temp-buffer
+ (save-window-excursion
+ (set-window-buffer nil (current-buffer))
+ (insert "|\t|\t|\t(")
+ (let ((tab-width 8))
+ (should (= (company--column) 25))))))
+
(ert-deftest company-plainify ()
(let ((tab-width 8))
(should (equal-including-properties
(push 31415926 unread-command-events))
(defun company--posn-col-row (pos)
- (let* ((col-row (posn-actual-col-row pos))
+ (let* ((col-row (posn-col-row pos))
(col (car col-row))
(row (cdr col-row)))
(when header-line-format