reline 0.5.1 → 0.5.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/key_actor/emacs.rb +11 -11
- data/lib/reline/key_actor/vi_command.rb +23 -23
- data/lib/reline/key_actor/vi_insert.rb +2 -2
- data/lib/reline/line_editor.rb +303 -452
- data/lib/reline/unicode.rb +2 -2
- data/lib/reline/version.rb +1 -1
- metadata +2 -2
data/lib/reline/unicode.rb
CHANGED
@@ -128,10 +128,10 @@ class Reline::Unicode
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
-
def self.split_by_width(str, max_width, encoding = str.encoding)
|
131
|
+
def self.split_by_width(str, max_width, encoding = str.encoding, offset: 0)
|
132
132
|
lines = [String.new(encoding: encoding)]
|
133
133
|
height = 1
|
134
|
-
width =
|
134
|
+
width = offset
|
135
135
|
rest = str.encode(Encoding::UTF_8)
|
136
136
|
in_zero_width = false
|
137
137
|
seq = String.new(encoding: encoding)
|
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.5.
|
4
|
+
version: 0.5.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-04-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: io-console
|