summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-24 03:46:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-24 03:46:14 +0000
commit1af83e49971e5ca5fa1b0c80a12e7b34d9271cac (patch)
tree6ffb7b4d699e973fd1e4f46db6bb78551e76e1b1 /misc/ruby-mode.el
parent2d2bbb96777e868e49a39cebe8359d02f6f117a2 (diff)
2000-01-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-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 5ebf4f875e..75efbf012b 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -180,7 +180,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))