[前][次][番号順一覧][スレッド一覧]

ruby-changes:56534

From: Kazuhiro <ko1@a...>
Date: Mon, 15 Jul 2019 10:30:05 +0900 (JST)
Subject: [ruby-changes:56534] Kazuhiro NISHIYAMA: b789648830 (master): Change PROMPT_S of simple-prompt

https://git.ruby-lang.org/ruby.git/commit/?id=b789648830

From b78964883037470f25755db740c09e835eadb5c9 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 15 Jul 2019 10:26:50 +0900
Subject: Change PROMPT_S of simple-prompt

When input `"` or `/` with simple-prompt,

Before:
`"` or `/`
(prompt disappeared and indent is changed)

After:
`"> "` or `/> /`
(indent is unchanged since `>> `)

diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 8a9215f..d7ee885 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -83,7 +83,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L83
       :SIMPLE => {
         :PROMPT_I => ">> ",
         :PROMPT_N => ">> ",
-        :PROMPT_S => nil,
+        :PROMPT_S => "%l> ",
         :PROMPT_C => "?> ",
         :RETURN => "=> %s\n"
       },
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]