Commit ffa8a2db authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/progmodes/js.el (js-indent-line): Don't mix columns and chars.

Fixes: debbugs:17619
parent 8889b935
2014-06-01 Stefan Monnier <>
* progmodes/js.el (js-indent-line): Don't mix columns and chars
2014-05-31 Stefan Monnier <>
* subr.el (set-transient-map): Don't wait for some "nested"
......@@ -1907,7 +1907,7 @@ In particular, return the buffer position of the first `for' kwd."
(let* ((parse-status
(save-excursion (syntax-ppss (point-at-bol))))
(offset (- (current-column) (current-indentation))))
(offset (- (point) (save-excursion (back-to-indentation) (point)))))
(indent-line-to (js--proper-indentation parse-status))
(when (> offset 0) (forward-char offset))))
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