reline 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: b632074a7d879f8c00b4af972fb39af64a4775fbfdf0bedd252fa629891b77b4
4
- data.tar.gz: 2406a738d92b076047ee697f527e4839cfd3012975a188784197cfddba3ce277
3
+ metadata.gz: 5fbe3e08832a8893e51895e3efe21ff3e728414d85ae95d62f2c854c1608f966
4
+ data.tar.gz: 8a0af70e8ce6cf9454fdb40070a405e53e0d2afcad9b4ad87345e2d5092662e6
5
5
  SHA512:
6
- metadata.gz: 84f7857bea1edc1bdf6035c68be9c6278e3f9749b6978d5bdbe7471495d9b44ade2be95752446a82afbab7d653fff679523bc7d697a511cc8d2772ec190cdf49
7
- data.tar.gz: 966a26ac5a42a2f8f21bc330e92469fa1543e87346f743282a7dc585611e4d0061a4db223367dac35fe37803984f8eec4126a1f5d4cd573c96bd2476b832f94e
6
+ metadata.gz: 1b480360a8dde5c140028bcaa408cdcd08469499ee331fd7441ffb7f63a9dda835e395ffc7b95b9c78fe3ad3209190deac1639f47c8973e2c1839a73d386201b
7
+ data.tar.gz: df35e1166aaec1003a40abb889d5c7a9268bd59293dcd3a1910dd2b5aa36177ba4b03c93aae746c7066c4b267115d621f8c8510b4a40871f27a7c96e1e384581
@@ -14,7 +14,7 @@ class Reline::KillRing
14
14
  end
15
15
 
16
16
  def ==(other)
17
- object_id == other.object_id
17
+ equal?(other)
18
18
  end
19
19
  end
20
20
 
@@ -1313,7 +1313,7 @@ class Reline::LineEditor
1313
1313
  end
1314
1314
  if not just_show_list and target < completed
1315
1315
  @line = (preposing + completed + completion_append_character.to_s + postposing).split("\n")[@line_index] || String.new(encoding: @encoding)
1316
- line_to_pointer = (preposing + completed + completion_append_character.to_s).split("\n").last || String.new(encoding: @encoding)
1316
+ line_to_pointer = (preposing + completed + completion_append_character.to_s).split("\n")[@line_index] || String.new(encoding: @encoding)
1317
1317
  @cursor_max = calculate_width(@line)
1318
1318
  @cursor = calculate_width(line_to_pointer)
1319
1319
  @byte_pointer = line_to_pointer.bytesize
@@ -1360,7 +1360,7 @@ class Reline::LineEditor
1360
1360
  completed = @completion_journey_data.list[@completion_journey_data.pointer]
1361
1361
  new_line = (@completion_journey_data.preposing + completed + @completion_journey_data.postposing).split("\n")[@line_index]
1362
1362
  @line = new_line.nil? ? String.new(encoding: @encoding) : new_line
1363
- line_to_pointer = (@completion_journey_data.preposing + completed).split("\n").last
1363
+ line_to_pointer = (@completion_journey_data.preposing + completed).split("\n")[@line_index]
1364
1364
  line_to_pointer = String.new(encoding: @encoding) if line_to_pointer.nil?
1365
1365
  @cursor_max = calculate_width(@line)
1366
1366
  @cursor = calculate_width(line_to_pointer)
@@ -1,3 +1,3 @@
1
1
  module Reline
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aycabta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: io-console
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.5.0.dev
76
+ rubygems_version: 3.5.1
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Alternative GNU Readline or Editline implementation by pure Ruby.