reline 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reline/face.rb +3 -3
- data/lib/reline/history.rb +1 -1
- data/lib/reline/line_editor.rb +7 -0
- data/lib/reline/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7094a7af234fede8c3b7a691066f57e68c8f7873ec8d18aeea7c9416f18958d
|
4
|
+
data.tar.gz: 7fad4ae701cdb34dcb22dd07428c3719672cc68ffa61b0bfbe005ae6326b4027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fcbaaa70d79beef33e8ff8150a693c640212b085f4622d1b8acf5aa2a5b742be32acb2076ef844a24f3566b623f7d3522ce01147caa30c79e61a86dee53307a
|
7
|
+
data.tar.gz: dbadec0e7d7604239f213ac91a1a32398700cd514629f41d1d513713fd03147d1beec830f2160e09c782fa0fd7708727732a556c0c07a9957fecf8c3565b0d53
|
data/lib/reline/face.rb
CHANGED
@@ -186,9 +186,9 @@ class Reline::Face
|
|
186
186
|
conf.define :scrollbar, style: :reset
|
187
187
|
end
|
188
188
|
config(:completion_dialog) do |conf|
|
189
|
-
conf.define :default, foreground: :
|
190
|
-
conf.define :enhanced, foreground: :
|
191
|
-
conf.define :scrollbar, foreground: :white, background: :
|
189
|
+
conf.define :default, foreground: :bright_white, background: :gray
|
190
|
+
conf.define :enhanced, foreground: :black, background: :white
|
191
|
+
conf.define :scrollbar, foreground: :white, background: :gray
|
192
192
|
end
|
193
193
|
end
|
194
194
|
|
data/lib/reline/history.rb
CHANGED
@@ -62,7 +62,7 @@ class Reline::History < Array
|
|
62
62
|
private def check_index(index)
|
63
63
|
index += size if index < 0
|
64
64
|
if index < -2147483648 or 2147483647 < index
|
65
|
-
raise RangeError.new("integer #{index} too big to convert to
|
65
|
+
raise RangeError.new("integer #{index} too big to convert to 'int'")
|
66
66
|
end
|
67
67
|
# If history_size is negative, history size is unlimited.
|
68
68
|
if @config.history_size.positive?
|
data/lib/reline/line_editor.rb
CHANGED
@@ -2563,6 +2563,13 @@ class Reline::LineEditor
|
|
2563
2563
|
end
|
2564
2564
|
alias_method :kill_line, :ed_kill_line
|
2565
2565
|
|
2566
|
+
# Editline:: +vi_change_to_eol+ (vi command: +C+) + Kill and change from the cursor to the end of the line.
|
2567
|
+
private def vi_change_to_eol(key)
|
2568
|
+
ed_kill_line(key)
|
2569
|
+
|
2570
|
+
@config.editing_mode = :vi_insert
|
2571
|
+
end
|
2572
|
+
|
2566
2573
|
# Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
|
2567
2574
|
# beginning of the edit buffer to the cursor and save it to the
|
2568
2575
|
# cut buffer.
|
data/lib/reline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aycabta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: io-console
|
@@ -57,7 +57,10 @@ files:
|
|
57
57
|
homepage: https://github.com/ruby/reline
|
58
58
|
licenses:
|
59
59
|
- Ruby
|
60
|
-
metadata:
|
60
|
+
metadata:
|
61
|
+
bug_tracker_uri: https://github.com/ruby/reline/issues
|
62
|
+
changelog_uri: https://github.com/ruby/reline/releases
|
63
|
+
source_code_uri: https://github.com/ruby/reline
|
61
64
|
post_install_message:
|
62
65
|
rdoc_options: []
|
63
66
|
require_paths:
|