summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-18 06:09:05 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-18 06:09:05 +0000
commitefc3b42c15240b752939b2b0af7f6f8842e82299 (patch)
tree02bb807e93fa0b9e53167165439d507c432b199b /misc
parentb81d16184cbe7e6e5bef3625d9f078452524b5c5 (diff)
downloadruby-efc3b42c15240b752939b2b0af7f6f8842e82299.tar.gz
ruby-efc3b42c15240b752939b2b0af7f6f8842e82299.tar.xz
ruby-efc3b42c15240b752939b2b0af7f6f8842e82299.zip
2000-01-18
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 1b7effc45..8f144cbd4 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -179,7 +179,8 @@ The variable ruby-indent-level controls the amount of indentation.
(back-to-indentation)
(setq top (current-column))
(skip-chars-backward " \t")
- (if (>= shift top) (setq shift (- shift top)))
+ (if (>= shift top) (setq shift (- shift top))
+ (setq shift 0))
(if (and (bolp)
(= x top))
(move-to-column (+ x shift))