branch: externals/cm-mode
commit a890a65456055d4a2baeb74b577351d1933ee622
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>
Bugfix: (cm-move-into-markup 'cm-comment) now moves into the comment rather
than past it.
---
cm-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cm-mode.el b/cm-mode.el
index 60464864b3..1ccdf37633 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -468,7 +468,8 @@ backward if at a closing delimiter. When moving backward,
point
is moved past a comment if the change before the comment is of
TYPE."
(unless (cm-move-past-delim (second (assq type cm-delimiters)))
- (if (eq (car (cm-markup-at-point t)) 'cm-comment)
+ (if (and (not (eq type 'cm-comment))
+ (eq (car (cm-markup-at-point t)) 'cm-comment))
(cm-forward-markup 'cm-comment -1))
(cm-move-past-delim (third (assq type cm-delimiters)) t)))