branch: externals/matlab-mode
commit 181264b23cd7851daa8a8b95721685ee0b4c74c2
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    matlab-ts-mode: optimize end-of-line
---
 matlab-ts-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/matlab-ts-mode.el b/matlab-ts-mode.el
index 61b92efd84..127fa683e9 100644
--- a/matlab-ts-mode.el
+++ b/matlab-ts-mode.el
@@ -408,8 +408,10 @@ as comments which is how they are treated by MATLAB."
       (forward-line 0)
 
       ;; Edits can change what properties characters can have so remove ours 
and reapply
-      (remove-text-properties (point) (save-excursion (goto-char (or end 
(point-max)))
-                                                      (end-of-line) (point))
+      (remove-text-properties (point) (save-excursion
+                                        (goto-char (or end (point-max)))
+                                        (let ((inhibit-field-text-motion t)) 
(end-of-line))
+                                        (point))
                               '(category nil mcm nil))
 
       ;; Tell Emacs that ellipsis (...) line continuations are comments.

Reply via email to