nvim 1.13.1 → 1.13.2
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/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: f2e7832d3930f2339b0f9d4debeefe1b52cf6cfe3116367a3f133ebab5096cf4
|
4
|
+
data.tar.gz: 95f19c08645a171f9884eaeeaf2d39210b7b6e15bc5e8e70f645452723aa7248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0217df866526ee92d6e33e848280457fdca21a11abd74b89da72a3dc001549d2fa57d6ff6fd6b4c0c6f89190922b363a095f7e862b801320efe9dd3ea569f8b4
|
7
|
+
data.tar.gz: 71ff8bc3e7a3e35f2957a686d60c6ad5a334d4cbed9a95ae7a593d90069822e4ac43e6aa3865cf05548fb3611d0f32c3bbfbf382341f0d841481a50281f7c445
|
data/INFO.yaml
CHANGED
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.2",
|
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: "382d565"
|
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
|