ifilter 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 535ae8eeb3552b29e6e3ee3dfc7558bd7ab59d3a
4
- data.tar.gz: 8889c81060a2ff43b9e193978e6941281afed5b8
3
+ metadata.gz: 785b1a55881274c8540597c38a0f2a721f283760
4
+ data.tar.gz: 8ceb304314af687f91f1ec464e1f0352b081bbe4
5
5
  SHA512:
6
- metadata.gz: da307d4bfa73ceebb973d6eb2fbff21cee39e629170ca78e2d7482baf27c0a57789fc93569b24f6a08d68e3630c216b041093767603484d0d48ce9c8d44d60f3
7
- data.tar.gz: 794a8ead06b801877c05d35567084305ec51a0e534f65317eb276b1776d11c9754c5c8eb39524aee76e461d5abba82ea84e1d2b764a92b5a7648768fa7906814
6
+ metadata.gz: a7be243c9ca4a2f18b91f4724de580cb731f099253abeab4964ef3ef2a97dcc99fab23fb74eeb46303d9d2f7a86dfbbbdbb2f6e2c999a331e93d4df011d683e7
7
+ data.tar.gz: 89597c557f58eb73841e8df3538a233735931ab1618a9e7bc4fe009c512b400be3d0fb9356204822cc9a8f40a326a48422fae53229165fd452971a3a35ad8fb0
data/lib/ifilter/input.rb CHANGED
@@ -10,6 +10,10 @@ module Ifilter
10
10
  @text << text
11
11
  end
12
12
 
13
+ def size
14
+ @text.size
15
+ end
16
+
13
17
  def backspace!
14
18
  @text.chop!
15
19
  end
@@ -110,7 +110,7 @@ module Ifilter
110
110
  word = "[#{@page_number}/#{max_page_number.zero? ? 1 : max_page_number}]"
111
111
  @window.setpos(@cursor_position - 1, @window.maxx)
112
112
 
113
- @window << (' ' * (@window.maxx - word.size - @prompt.size)) + word
113
+ @window << (' ' * (@window.maxx - @prompt.size - @input.size - word.size)) + word
114
114
  end
115
115
 
116
116
  def up_cursor_position
@@ -1,3 +1,3 @@
1
1
  module Ifilter
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ifilter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaihar4