From 2306c9cb1ac7ef0e5c0120269c7f1c3a768e94b7 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 24 Jun 2015 13:34:41 +0300 Subject: [PATCH] Support whitespace-mode newline-mark Fixes #370 --- company.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/company.el b/company.el index 5c20c0516..8500a4d93 100644 --- a/company.el +++ b/company.el @@ -2400,6 +2400,10 @@ If SHOW-VERSION is non-nil, show the version in the echo area." (version< emacs-version "24.4.51.5")) ;; http://debbugs.gnu.org/18384 (cl-decf ww)) + ;; whitespace-mode with newline-mark + (when (and buffer-display-table + (aref buffer-display-table ?\n)) + (cl-decf ww (1- (length (aref buffer-display-table ?\n))))) ww)) (defun company--replacement-string (lines old column nl &optional align-top) -- 2.39.2