diff options
author | Stan Lo <stan001212@gmail.com> | 2023-07-07 18:27:14 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-07-07 17:27:25 +0000 |
commit | 24d9e21f84eced634b3e443ada2a57621b2b4b9b (patch) | |
tree | 96ecaa8228d6b04c80b48047e8a77abc15b5cb61 /lib/reline/ansi.rb | |
parent | a642a94b68a31c0e7c092087114c269132cdb159 (diff) |
[ruby/reline] Reduce direct references to `Reline::IOGate`
(https://github.com/ruby/reline/pull/566)
* Avoid referencing IOGate from IOGate classes
The only time those classes being used is when themselves being the IOGate.
So when referencing to IOGate, it's better to use `self` instead.
* Avoid referencing to IOGate from LineEditor directly
* Avoid referencing to IOGate from Core directly
* Reference to Reline.core directly
* Replace Reline::IOGate with Reline.core.io_gate
Diffstat (limited to 'lib/reline/ansi.rb')
-rw-r--r-- | lib/reline/ansi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 06ea9efd09..1e018d4e82 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -206,7 +206,7 @@ class Reline::ANSI end def self.in_pasting? - @@in_bracketed_paste_mode or (not Reline::IOGate.empty_buffer?) + @@in_bracketed_paste_mode or (not empty_buffer?) end def self.empty_buffer? |