File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 28
28
--- @return boolean sent
29
29
function mod .notify (client , method , params )
30
30
logger .trace (" api notify:" , method , params )
31
- return client .notify (method , params )
31
+
32
+ if vim .fn .has (" nvim-0.11" ) == 1 then
33
+ return client :notify (method , params )
34
+ else
35
+ return client .notify (method , params )
36
+ end
32
37
end
33
38
34
39
--- @alias copilot_editor_info { name : string , version : string }
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ function panel:refresh()
469
469
else
470
470
local utf16_index
471
471
-- assume cursor at end of line
472
- if vim .has (" nvim-0.11" ) then
472
+ if vim .fn . has (" nvim-0.11" ) == 1 then
473
473
utf16_index = vim .str_utfindex (self .state .line , " utf-16" )
474
474
else
475
475
--- @diagnostic disable-next-line : missing-parameter
You can’t perform that action at this time.
0 commit comments