emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c357d5a 144/173: company-grab-line: Make it work in ERC pr


From: Dmitry Gutov
Subject: [elpa] master c357d5a 144/173: company-grab-line: Make it work in ERC prompt
Date: Thu, 23 Jun 2016 00:28:46 +0000 (UTC)

branch: master
commit c357d5acf7f1cc685fd89b3dccb1d72e0f96886b
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-grab-line: Make it work in ERC prompt
    
    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22953
---
 company.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 20aedc8..2667b51 100644
--- a/company.el
+++ b/company.el
@@ -833,7 +833,8 @@ means that `company-mode' is always turned on except in 
`message-mode' buffers."
 If EXPRESSION is non-nil, return the match string for the respective
 parenthesized expression in REGEXP.
 Matching is limited to the current line."
-  (company-grab regexp expression (point-at-bol)))
+  (let ((inhibit-field-text-motion t))
+    (company-grab regexp expression (point-at-bol))))
 
 (defun company-grab-symbol ()
   "If point is at the end of a symbol, return it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]