diff options
author | 2021-04-14 14:53:19 -0400 | |
---|---|---|
committer | 2021-04-14 14:53:19 -0400 | |
commit | 8ff320ad70a5183acc2bd635dfef33a792bd7f5a (patch) | |
tree | b44b3debb1f52857aaafab7f499a978c2686e170 /core/ui.lua | |
parent | 61f0475bbacbe0d1c1492c5be6510fc144d3926f (diff) | |
download | textadept-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.lua | 4 |
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 |