fix: local variable declaration

remotes/origin/HEAD
Juliette Lamarche 2022-11-27 17:44:22 -05:00
parent 75b9e2e259
commit 4495dca200
No known key found for this signature in database
GPG Key ID: 004A3B1CB2774189
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ local function fileOp(op)
vim.ui.input({prompt = promptStr}, function(newName)
local invalidName = false
local sameName
if newName then
invalidName = newName:find("^%s*$") or newName:find("[/\\:]")
sameName = newName == oldName