Skip to content

Commit f8cbc57

Browse files
committed
refactor: prefer vim.fn.readfile over io.lines
For consistency.
1 parent 85200da commit f8cbc57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/wincent/commandt/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ local default_options = {
414414
--
415415
-- (continues for 100s of lines...)
416416
--
417-
for line in io.lines(ex_cmd_index) do
417+
for _, line in ipairs(vim.fn.readfile(ex_cmd_index)) do
418418
local command = line:match('^|:([^|]+)|%s+')
419419
if command then
420420
table.insert(commands, command)

0 commit comments

Comments
 (0)