nvim 1.13.1 → 1.13.3
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 +4 -4
- data/INFO.yaml +1 -1
- data/README.md +1 -0
- data/lib/neovim/client.rb +1 -2
- data/lib/neovim/info.rb +2 -2
- data/lib/neovim/ruby_provider.rb +7 -2
- 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: 2d1d244349388420fb4dab2da25a9aa801a9af8de8110754c6dd250321e5ef45
|
4
|
+
data.tar.gz: 786a2add94ef5b57069939e906be3a98b5643cb33c0000fa450ef485bf38cdfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c822129d9b098431c940202014031c75f1fecad4b25b5e224c4b28b8a3e6be093a7d61c896dcdb8bbf702084e9cdf9211081dd1de52b5aa021ca7cf6d0d768
|
7
|
+
data.tar.gz: 9aa7c2b26696102dcb0689b050a327c83dcc52f0e7b0e5cf4d4261f01426d4eb80aab2876526491d2fee698ef415e80db00bd57d77d443e44466c3201dad0f9c
|
data/INFO.yaml
CHANGED
data/README.md
CHANGED
@@ -303,6 +303,7 @@ values will be converted by `#to_s`.
|
|
303
303
|
:rubydo $_ = nil if $_ =~ /^#/ # delete comment lines
|
304
304
|
:rubydo $_ = $_.split # put each word on its own line
|
305
305
|
:rubydo $_ = [$_]*3 if ~/knock/i # triple lines containing /knock/
|
306
|
+
:rubydo $_ = [$_, ""] # spread by empty lines
|
306
307
|
```
|
307
308
|
|
308
309
|
|
data/lib/neovim/client.rb
CHANGED
@@ -165,7 +165,6 @@ module Neovim
|
|
165
165
|
if not String === m or m.hash != h then
|
166
166
|
r = result_strings m
|
167
167
|
r.flatten!
|
168
|
-
r.each { |l| l.chomp! }
|
169
168
|
@client.buf_set_lines @buffer, @i-1, @i, true, r
|
170
169
|
@inc = r.length
|
171
170
|
@last += @inc-1
|
@@ -179,7 +178,7 @@ module Neovim
|
|
179
178
|
case obj
|
180
179
|
when Enumerable then obj.map { |l| result_strings l }
|
181
180
|
when nil then []
|
182
|
-
else obj.to_s.
|
181
|
+
else obj.to_s.scan /^.*$/
|
183
182
|
end
|
184
183
|
end
|
185
184
|
|
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.13.
|
3
|
+
version: "1.13.3",
|
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: "
|
10
|
+
commit: "81a5b7a"
|
data/lib/neovim/ruby_provider.rb
CHANGED
@@ -86,7 +86,12 @@ module Neovim
|
|
86
86
|
if msg =~ /\A.*?:(\d+):\s*/ then
|
87
87
|
line, msg = $1, $'
|
88
88
|
else
|
89
|
-
|
89
|
+
$@.each { |b|
|
90
|
+
if b =~ /:(\d+):in\b/ then
|
91
|
+
line = $1.to_i
|
92
|
+
break
|
93
|
+
end
|
94
|
+
}
|
90
95
|
end
|
91
96
|
client.message_err "Ruby #{$!.class}:#{line}: #{msg}"
|
92
97
|
end
|
@@ -154,7 +159,7 @@ module Neovim
|
|
154
159
|
r = begin
|
155
160
|
script_binding.eval lines.to_s, "ruby_run"
|
156
161
|
rescue Exception
|
157
|
-
$@.pop until $@.empty? or $@.last
|
162
|
+
$@.pop until $@.empty? or $@.last =~ /:\d+:in .*\bempty_binding\W*$/
|
158
163
|
raise unless $rescue and $result != false
|
159
164
|
$!
|
160
165
|
end
|