summaryrefslogtreecommitdiff
path: root/lib
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
parent680835085df7695b18af40c7a8554f2d314b5de5 (diff)
[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')
-rw-r--r--lib/irb.rb18
-rw-r--r--lib/irb/init.rb10
2 files changed, 14 insertions, 14 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 8f2934a7e4..e0025ab3e8 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -194,10 +194,10 @@ require_relative "irb/easter-egg"
# For instance, the default prompt mode is defined as follows:
#
# IRB.conf[:PROMPT_MODE][: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" # used to printf
# }
#
@@ -211,10 +211,10 @@ require_relative "irb/easter-egg"
# # :RETURN: |
# # %s
# # :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
# # :CLASSIC:
@@ -232,7 +232,7 @@ require_relative "irb/easter-egg"
# # :RETURN: |
# # => %s
# # :INF_RUBY:
-# # :PROMPT_I: ! '%N(%m):%03n:%i> '
+# # :PROMPT_I: ! '%N(%m):%03n> '
# # :PROMPT_N:
# # :PROMPT_S:
# # :PROMPT_C:
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,