From 35d2af827f5ebf0bc1b74cfe2c69cf9e4499e67b Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 13 Sep 2014 15:57:30 +0400 Subject: [PATCH] company-with-candidate-inserted: restore buffer modification status --- company.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/company.el b/company.el index 505cc82c6..0991f6db8 100644 --- a/company.el +++ b/company.el @@ -989,7 +989,8 @@ can retrieve meta-data for them." (company--insert-candidate ,candidate) (unwind-protect (progn ,@body) - (delete-region company-point (point))))) + (delete-region company-point (point)) + (set-buffer-modified-p modified-p)))) (defun company-explicit-action-p () "Return whether explicit completion action was taken by the user." -- 2.39.2