diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-26 17:15:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-26 17:15:00 +0000 |
commit | aba4666e197331362f4a53b37bc21909144a3494 (patch) | |
tree | 9a59a2a739ca7ddbf1d798c7b5ebf66fd927944f /misc/ruby-mode.el | |
parent | 52e0246b61c3eb9871761692704e41687f8437c0 (diff) | |
download | ruby-aba4666e197331362f4a53b37bc21909144a3494.tar.gz |
* eval.c (localjump_destination): lambda should not interfere
return from the yielded block.
* hash.c (delete_if_i): use st_delete_safe() (via
rb_hash_delete()) instead of returning ST_DELETE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r-- | misc/ruby-mode.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index f1762e6b5d..a52b00893d 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -683,11 +683,9 @@ The variable ruby-indent-level controls the amount of indentation. (setq end nil)) (goto-char (or end pos)) (skip-chars-backward " \t") - (and - (setq state (ruby-parse-region parse-start (point))) - (nth 0 state) - (setq begin (cdr (nth 1 state))) - (goto-char pos))) + (setq state (ruby-parse-region parse-start (point))) + (setq begin (or (nth 0 state) (cdr (nth 1 state)))) + (goto-char pos)) (or (bobp) (forward-char -1)) (and (or (and (looking-at ruby-symbol-re) |