Skip to content

Commit

Permalink
refactor: use a non-abbreviated variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent committed Sep 4, 2023
1 parent bafd50d commit d48a800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/corpus/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ corpus = {
local _, _, term = string.find(line, '^%s*Corpus%f[%A]%s*(.-)%s*$')
if term ~= nil then
if corpus.auto_cd() then
local num_dirs = table.getn(corpus.directories())
if not corpus.in_directory() and num_dirs == 1 then
local directory_count = table.getn(corpus.directories())
if not corpus.in_directory() and directory_count == 1 then
vim.cmd('cd ' .. vim.fn.fnameescape(corpus.directory()))
end
end
Expand Down

0 comments on commit d48a800

Please sign in to comment.