branch: externals/tex-parens
commit 15b106f6ea805129569de9d64cd368148fbd4257
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>

    fix bug in tp-forward-sexp
    
    need to check whether tp--forward-delim succeeds
---
 tex-parens.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tex-parens.el b/tex-parens.el
index 470279b880..4ad1379763 100644
--- a/tex-parens.el
+++ b/tex-parens.el
@@ -551,8 +551,8 @@ backward across N balanced expressions."
   "Move forward across one balanced expression (sexp).
 Helper function for `tp-forward-sexp'."
   (let ((delim-beg (save-excursion
-                     (tp--forward-delim)
-                     (match-beginning 0)))
+                     (when (tp--forward-delim)
+                       (match-beginning 0))))
         (vanilla
          (condition-case _
              (save-excursion

Reply via email to