Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for Dir.pwd in Dir.getwd doc #504

Closed
wants to merge 1 commit into from

Conversation

jasonrclark
Copy link

Since Dir.pwd aliases Dir.getwd, their docs are identical. However, looking up Dir.pwd is a bit awkward given the example doesn't even show the pwd method.

This change clarifies that and shows how the usages are equivalent.

Since Dir.pwd aliases Dir.getwd, their docs are identical. However, looking up
Dir.pwd is a bit awkward given the example doesn't even show the pwd method.

This change clarifies that and shows how the usages are equivalent.
@hsbt hsbt closed this in 6f53ea4 Jan 21, 2014
mmasaki pushed a commit to mmasaki/ruby that referenced this pull request Jan 22, 2014
…rubyGH-504]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlove pushed a commit to tenderlove/ruby that referenced this pull request Jan 24, 2014
…rubyGH-504]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mrkn pushed a commit to mrkn/ruby that referenced this pull request Feb 15, 2014
…rubyGH-504]

git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/trunk@44677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
funky-bibimbap pushed a commit to funky-bibimbap/ruby that referenced this pull request Mar 2, 2014
…rubyGH-504]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matzbot pushed a commit that referenced this pull request Apr 4, 2023
* Test existing behavior

Typing Ctrl-D ends editing but typing <Del> does not.

Also renamed a test that is not testing ed_delete_next_char but
key_delete.

* Check if line empty first in em_delete

By distributivity of AND over OR, we can factor out this condition. This
will make the next commit simpler.

* Use em_delete in key_delete

When the editing mode is emacs, use `em_delete` in `key_delete`. We need
to add a condition though to `em_delete`, because it implements both
`delete-char` and `end-of-file`. We only want the `end-of-file` behavior
is the key is really Ctrl-D.

This matches the behavior of the <Del> key with readline, i.e. deleting
the next character if there is one, but not moving the cursor, while not
finishing the editing if there are no characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant