aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/init.rb
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2023-08-12 19:19:20 +0900
committergit <svn-admin@ruby-lang.org>2023-08-12 10:19:24 +0000
commite1683b4958b217d246ff737bdd1b046554c73e18 (patch)
tree7e5b816e0fa5101e7214bb02230197f0fb2cf36a /lib/irb/init.rb
parent680835085df7695b18af40c7a8554f2d314b5de5 (diff)
downloadruby-e1683b4958b217d246ff737bdd1b046554c73e18.tar.gz
[ruby/irb] Drop showing indent level number in DEFAULT prompt and
INF_RUBY prompt (https://github.com/ruby/irb/pull/679) * Drop showing indent level number in DEFAULT prompt and INF_RUBY prompt * Update prompt part of test_rendering's expected result https://github.com/ruby/irb/commit/3847532e54
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r--lib/irb/init.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 75a7f8d74c..ef07a5f1e6 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -64,10 +64,10 @@ module IRB # :nodoc:
:RETURN => "%s\n"
},
:DEFAULT => {
- :PROMPT_I => "%N(%m):%03n:%i> ",
- :PROMPT_N => "%N(%m):%03n:%i> ",
- :PROMPT_S => "%N(%m):%03n:%i%l ",
- :PROMPT_C => "%N(%m):%03n:%i* ",
+ :PROMPT_I => "%N(%m):%03n> ",
+ :PROMPT_N => "%N(%m):%03n> ",
+ :PROMPT_S => "%N(%m):%03n%l ",
+ :PROMPT_C => "%N(%m):%03n* ",
:RETURN => "=> %s\n"
},
:CLASSIC => {
@@ -85,7 +85,7 @@ module IRB # :nodoc:
:RETURN => "=> %s\n"
},
:INF_RUBY => {
- :PROMPT_I => "%N(%m):%03n:%i> ",
+ :PROMPT_I => "%N(%m):%03n> ",
:PROMPT_N => nil,
:PROMPT_S => nil,
:PROMPT_C => nil,