aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-14 14:53:19 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-14 14:53:19 -0400
commit8ff320ad70a5183acc2bd635dfef33a792bd7f5a (patch)
treeb44b3debb1f52857aaafab7f499a978c2686e170 /core/ui.lua
parent61f0475bbacbe0d1c1492c5be6510fc144d3926f (diff)
downloadtextadept-8ff320ad70a5183acc2bd635dfef33a792bd7f5a.tar.gz
textadept-8ff320ad70a5183acc2bd635dfef33a792bd7f5a.zip
Addressed some minor Luacheck issues.
Not all shadowing warnings need to be fixed.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ui.lua b/core/ui.lua
index eb366c93..2e0635fa 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -274,8 +274,8 @@ function ui.goto_file(filename, split, preferred_view, sloppy)
else
local other_view = _VIEWS[preferred_view]
for _, view in ipairs(_VIEWS) do
- local filename = view.buffer.filename or ''
- if filename:find(patt) then
+ local view_filename = view.buffer.filename or ''
+ if view_filename:find(patt) then
ui.goto_view(view)
return
end