Permalink
Browse files

fixed bug for \[ and \]

  • Loading branch information...
1 parent 368bbab commit b9ccde5bec986687b05c5d7d8c356199bea1f982 @tomathan committed Dec 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 autopair-latex.el
View
4 autopair-latex.el
@@ -48,11 +48,11 @@
(setq end-pos (point))
(goto-char 1)
(setq ct 0)
- (while (search-forward "\[" end-pos t)
+ (while (search-forward "\\\[" end-pos t)
(setq ct (1+ ct))
)
(goto-char 1)
- (while (search-forward "\]" end-pos t)
+ (while (search-forward "\\\]" end-pos t)
(setq ct (1+ ct))
)
(goto-char end-pos)

0 comments on commit b9ccde5

Please sign in to comment.