A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/b65a23a13a29176aa669afc5d1c906d1d51e0a39 below:

resolve bufnr for get_lines (#16986) · neovim/neovim@b65a23a · GitHub

193 193

local function get_lines(bufnr, rows)

194 194

rows = type(rows) == "table" and rows or { rows }

195 195 196 +

-- This is needed for bufload and bufloaded

197 +

if bufnr == 0 then

198 +

bufnr = vim.api.nvim_get_current_buf()

199 +

end

200 + 196 201

---@private

197 202

local function buf_lines()

198 203

local lines = {}

@@ -1814,7 +1819,7 @@ function M.make_given_range_params(start_pos, end_pos, bufnr, offset_encoding)

1814 1819

end_pos = {end_pos, 't', true};

1815 1820

offset_encoding = {offset_encoding, 's', true};

1816 1821

}

1817 -

bufnr = bufnr or 0

1822 +

bufnr = bufnr or vim.api.nvim_get_current_buf()

1818 1823

offset_encoding = offset_encoding or M._get_offset_encoding(bufnr)

1819 1824

local A = list_extend({}, start_pos or api.nvim_buf_get_mark(bufnr, '<'))

1820 1825

local B = list_extend({}, end_pos or api.nvim_buf_get_mark(bufnr, '>'))


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4