diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-09-12 00:01:00 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-09-12 00:01:00 +0000 |
commit | 34cab3d9c1c6d396f3d7cb5876417ca3379f5254 (patch) | |
tree | c99034eedb053bc83b3faaed223a59e155a2fc20 /lisp/progmodes | |
parent | b4587710d34b1deeb4b3a965031f1dcd8eaad223 (diff) | |
download | emacs-34cab3d9c1c6d396f3d7cb5876417ca3379f5254.tar.gz |
* progmodes/js.el (js--proper-indentation): Handle the case where
char-before is null. Reported by Deniz Dogan.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/js.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 37b7d531501..db8a52330c1 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1753,7 +1753,7 @@ nil." (if (looking-at "[({[]\\s-*\\(/[/*]\\|$\\)") (progn (skip-syntax-backward " ") - (when (= (char-before) ?\)) (backward-list)) + (when (eq (char-before) ?\)) (backward-list)) (back-to-indentation) (cond (same-indent-p (current-column)) |