reline 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reline/line_editor.rb +1 -1
- data/lib/reline/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 985d3ce68260542cce79b3d3291c29ca30ee82250e50089c2de7bb16f60d755d
|
4
|
+
data.tar.gz: d3444d9e894a66fd2a0e5be4fddd5d36b9b254f0aaff7ed1d590fec26c13b3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5651134aeb6d0eba7e33b4fa6e85c2ac43677432a7b94e8aa24d1c9f05326126c81669aa297f9cb03bea7f92c2ee8600364205c8a8eafa7c6185441472f9d1
|
7
|
+
data.tar.gz: 63cc8b0b0b936e8ac1a490c9a1c849631b2c4c33c520eb2dd666b9b93b641417f3640542067de4f64ff2e28fd4dd883ed3821c7704bb82a64485ee52d5273c3b
|
data/lib/reline/line_editor.rb
CHANGED
@@ -192,7 +192,7 @@ class Reline::LineEditor
|
|
192
192
|
lines.each_with_index { |line, i|
|
193
193
|
prompt = ''
|
194
194
|
prompt = prompt_list[i] if prompt_list and prompt_list[i]
|
195
|
-
result += calculate_height_by_width(calculate_width(prompt + line))
|
195
|
+
result += calculate_height_by_width(calculate_width(prompt, true) + calculate_width(line))
|
196
196
|
}
|
197
197
|
result
|
198
198
|
end
|
data/lib/reline/version.rb
CHANGED