nvim 1.12 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c052fb6e9b32c5b7d72efcb523ecf47bb6891601e5b9449af145dd721e3f2b7
4
- data.tar.gz: 49542a93fe4a187db4017b71e1ba035e4656f5a0a1770287093807ce23b1dbed
3
+ metadata.gz: 6e10763edb636c850c176e60d8d63d5d90e8a16dcf7eed0fc3a0831b095d4f71
4
+ data.tar.gz: beaf13099284542eb9ad80af988f046ef9bf21b2153efc253fd674cdd274c268
5
5
  SHA512:
6
- metadata.gz: f23fa9ffa562a5f6bb89230c6503d29b9fab7a4c59be66063f0136907618585c3b5dd6a6dadab4f65f1044117e07e4bec17706029367e7a82d930746316efd3f
7
- data.tar.gz: feea95a8822ad8d363e3d4110a9bc4e141ac899b31399613b13c382ebbd7d8a1572c516e3154ee791743a210238f7ab886a011fcbc7ca8dc039ce6e0ebf461d3
6
+ metadata.gz: f6493af152fffef06a515df8f66c2131bf27b91208bf6836ad8f980f1c4d42186a48f45241a52a4aabb84ea9190fbf7fc21b58a2c97af480b90a431a4355f314
7
+ data.tar.gz: 827a1cb5920edd901ff52a027916e602d0d0ba9d9abf2ca90768047fa34e5ac3b2a3fa9b6449ef4be8d27afdf60773397f9cfa1a00866a2282ddb82d5325f3d9
data/INFO.yaml CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
 
5
5
  nvim:
6
- version: "1.12"
6
+ version: "1.13.1"
7
7
  license: BSD-2-Clause+
8
8
  authors:
9
9
  - Bertram Scharpf
data/README.md CHANGED
@@ -284,7 +284,7 @@ The legacy variables `$curbuf` and `$curwin` are supported.
284
284
  ```
285
285
 
286
286
 
287
- ### Visit and changes lines by :rubydo
287
+ ### Visit and change lines by :rubydo
288
288
 
289
289
  The `$_` and `$.` variables contain the line itself and the line number.
290
290
  `$_` may be changed or assigned to.
data/lib/neovim/info.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require "neovim/meta.rb"
2
2
  Neovim::INFO = Neovim::Meta.new "nvim",
3
- version: "1.12",
3
+ version: "1.13.1",
4
4
  license: "BSD-2-Clause+",
5
5
  authors: ["Bertram Scharpf"],
6
6
  email: "software@bertram-scharpf.de",
7
7
  summary: "Yet another Ruby client for Neovim",
8
8
  description: "A simple Ruby client for Neovim.\nClean code, minimal dependecies, no frills, no wokeness.",
9
9
  homepage: "https://github.com/BertramScharpf/ruby-nvim",
10
- commit: "b12ec0b"
10
+ commit: "b9f2c3f"
data/lib/neovim/output.rb CHANGED
@@ -137,18 +137,14 @@ module Neovim
137
137
  end
138
138
 
139
139
  class WriteBuf < WriteStd
140
- def initialize *args, whole: nil, top: nil
140
+ def initialize *args, follow: nil
141
141
  super
142
142
  @lines = []
143
- @whole, @top = whole, top
143
+ @follow = follow.to_bool
144
144
  end
145
145
  def finish
146
146
  super
147
- if @whole then
148
- @client.buf_set_lines 0, 0, -1, true, @lines
149
- else
150
- @client.put @lines, "l", true, !@top
151
- end
147
+ @client.put @lines, "l", @follow, @follow
152
148
  end
153
149
  private
154
150
  def write_line l
@@ -150,7 +150,7 @@ module Neovim
150
150
  if code == "|" then # | is a workaround because Neovim doesn't allow empty code (the ultimate Quine).
151
151
  set_globals client, fst..lst do |lines|
152
152
  client.command "#{lst}"
153
- WriteBuf.redirect client do
153
+ WriteBuf.redirect client, follow: true do
154
154
  r = begin
155
155
  script_binding.eval lines.to_s, "ruby_run"
156
156
  rescue Exception
@@ -165,7 +165,7 @@ module Neovim
165
165
  elsif code == "+" then
166
166
  client.command "#{lst}"
167
167
  set_globals client, fst..lst do |lines|
168
- WriteBuf.redirect client do
168
+ WriteBuf.redirect client, follow: true do
169
169
  require "neovim/tools/calculator"
170
170
  @calc ||= Calculator.new
171
171
  @calc.reset!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nvim
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.12'
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.6.9
82
+ rubygems_version: 3.7.1
83
83
  specification_version: 4
84
84
  summary: Yet another Ruby client for Neovim
85
85
  test_files: []