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

TTY::Editor.open(text: "") provides no way to access the editor text #5

Open
jcoleman opened this issue Oct 27, 2023 · 0 comments
Open
Labels

Comments

@jcoleman
Copy link

Describe the problem

Using the TTY::Editor.open(text: "") API throws away the text.

Additionally that method is documented as # @return [Object], but actually it returns a boolean.

Steps to reproduce the problem

See description.

Actual behaviour

Text thrown away.

Expected behaviour

Either text returned or the editor instance (with text available via a reader) returned.

Describe your environment

  • OS version: Debian Bullseye
  • Ruby version: 3.2
  • TTY::Editor version: latest in RubyGems
@jcoleman jcoleman added the bug label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant