From 8ff320ad70a5183acc2bd635dfef33a792bd7f5a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Wed, 14 Apr 2021 14:53:19 -0400 Subject: Addressed some minor Luacheck issues. Not all shadowing warnings need to be fixed. --- core/ui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/ui.lua') 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 -- cgit v1.2.3