summaryrefslogtreecommitdiff
path: root/lisp/progmodes/js.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-09-12 00:01:00 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-09-12 00:01:00 +0000
commit34cab3d9c1c6d396f3d7cb5876417ca3379f5254 (patch)
treec99034eedb053bc83b3faaed223a59e155a2fc20 /lisp/progmodes/js.el
parentb4587710d34b1deeb4b3a965031f1dcd8eaad223 (diff)
downloademacs-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/js.el')
-rw-r--r--lisp/progmodes/js.el2
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))