diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-20 16:45:41 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-20 16:45:41 +0000 |
commit | aab1ba1365e1132717cbd8ae8a92014b1bba0854 (patch) | |
tree | 77a3e260242dc179917075ae3e9b73f75a60fd3c /lib/optparse.rb | |
parent | 38fc76574a85aa1fbb117fa9d9c5f8c69d76b5e6 (diff) |
* eval.c (rb_require_safe): preserve old ruby_errinfo.
[ruby-talk:95409]
* eval.c (rb_f_raise): should not clear backtrace information if
exception object already have one.
* parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2]
this change is done by Nobuyoshi Nakada <[email protected]>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 1b083b8e6e..4a979a78d1 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -417,7 +417,7 @@ class OptionParser yield(indent + l) end - while (l = left.shift; r = right.shift; l or r) + while begin l = left.shift; r = right.shift; l or r end l = l.to_s.ljust(width) + ' ' + r if r and !r.empty? yield(indent + l) end |