Commit e63ace37 authored by Daniel Colascione's avatar Daniel Colascione

Fix infloop in indentation code

parent 2db9da01
2013-12-30 Daniel Colascione <dancol@dancol.org>
* progmodes/sh-script.el
(sh-smie-sh-forward-token,sh-smie-rc-forward-token): Fix infloop
in indentation code. (Bug#16233)
2013-12-28 João Távora <joaotavora@gmail.com>
* elec-pair.el (electric-pair-post-self-insert-function): Don't
......
......@@ -1844,7 +1844,7 @@ Does not preserve point."
";")
(let ((semi (sh-smie--newline-semi-p)))
(forward-line 1)
(if semi ";"
(if (or semi (eobp)) ";"
(sh-smie-sh-forward-token))))
(forward-comment (point-max))
(cond
......@@ -2070,7 +2070,7 @@ Point should be before the newline."
";")
(let ((semi (sh-smie--rc-newline-semi-p)))
(forward-line 1)
(if semi ";"
(if (or semi (eobp)) ";"
(sh-smie-rc-forward-token))))
(forward-comment (point-max))
(cond
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment