Skip to content

Commit

Permalink
Use getline
Browse files Browse the repository at this point in the history
  • Loading branch information
piersolenski committed Aug 31, 2023
1 parent 2620431 commit 8ba93ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wtf/ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local M = {}
local function get_content_between_lines(start_line, end_line)
local lines = {}
for line_num = start_line, end_line do
local line = string.format("%d: %s", line_num, vim.fn.line(line_num))
local line = string.format("%d: %s", line_num, vim.fn.getline(line_num))
table.insert(lines, line)
end
return table.concat(lines, "\n")
Expand Down

0 comments on commit 8ba93ff

Please sign in to comment.