lib/neovim/ruby_provider/buffer_ext.rb in neovim-0.4.0 vs lib/neovim/ruby_provider/buffer_ext.rb in neovim-0.5.0
- old
+ new
@@ -1,17 +1,17 @@
require "neovim/ruby_provider/vim"
module Neovim
class Buffer
def self.current
- ::Vim.get_current_buffer
+ ::Vim.get_current_buf
end
def self.count
- ::Vim.get_buffers.size
+ ::Vim.list_bufs.size
end
def self.[](index)
- ::Vim.get_buffers[index]
+ ::Vim.list_bufs[index]
end
end
end