Comments (2)
I can reproduce it.
And I think a following patch (for https://github.com/ruby/ruby's master) is solved it.
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 478d1d73f3..8ac0eefb25 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -148,7 +148,7 @@ def reset_variables(prompt = '', encoding:)
@cleared = false
@rerender_all = false
@history_pointer = nil
- @kill_ring = Reline::KillRing.new
+ @kill_ring ||= Reline::KillRing.new
@vi_clipboard = ''
@vi_arg = nil
@waiting_proc = nil
from irb.
That does seem to fix the issue! So if the problem is not with IRB but with Ruby itself, then how can the fix be submitted there?
from irb.
Related Issues (20)
- Bug when ctrl-c in pager HOT 2
- Readline.readline("question") compatibility is broken, question is not shown HOT 1
- After entering `debug`, _ (underscore) stops working
- Completion crashes on a method having invalid name as UTF-8
- Config file placed at the project level at `.config/irb/irbrc` is not parsed. HOT 2
- help(space) errors HOT 1
- Debug command does not work when `IRB.conf[:USE_SINGLELINE]` is set
- Display better error message if no prompt mode is given
- Rewrite handle_exception to apply backtrace filtering to Exception#backtrace instead of Exception#full_message
- Introduce IRB.conf[:backtrace_filter] for upstream projects to extend filter_backtrace
- Feature Request: Equivalent to Pry’s !!! in IRB for Exiting Nested Contexts HOT 2
- Ctrl-D behaviour is different between normal IRB and irb:rdbg sessions
- Please clarify the license HOT 1
- Can't enter a debug session with irb 1.13 HOT 4
- Can't change workspace after entering `debug`
- Add helper aliases HOT 6
- undefined method `extract_ruby_args=' for module IRB::Command (NoMethodError) HOT 7
- IRB crashes when using `define_method('class') {}` HOT 1
- `show_source` can't find some sources defined in the session HOT 1
- HISTORY is unavailable when using rails console with RUBY_DEBUG_IRB_CONSOLE=1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irb.