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

ruby-changes:67563

From: aycabta <ko1@a...>
Date: Fri, 3 Sep 2021 01:12:57 +0900 (JST)
Subject: [ruby-changes:67563] 8c067f182e (master): [ruby/reline] Autocompletion ignites when target char length is 3 or longer

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

From 8c067f182e74f7e0570d200ee6308ea85ab676d0 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 3 Sep 2021 00:27:22 +0900
Subject: [ruby/reline] Autocompletion ignites when target char length is 3 or
 longer

https://github.com/ruby/reline/commit/261830fda3
---
 lib/reline.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/reline.rb b/lib/reline.rb
index 1b5c7a8..f1f82bf 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -195,7 +195,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L195
         return nil
       end
       pre, target, post = retrieve_completion_block(true)
-      if target.nil? or target.empty?# or target.size <= 3
+      if target.nil? or target.empty? or target.size <= 3
         return nil
       end
       if completion_journey_data and completion_journey_data.list
-- 
cgit v1.1


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

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