Skip to content

Commit

Permalink
Fix a nil indexing error when positioning to an image by QSearch when…
Browse files Browse the repository at this point in the history
  • Loading branch information
HamRusTal committed May 23, 2020
1 parent 0b50134 commit e3b7f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LuaPicture/Macros/scripts/picture.lua
Expand Up @@ -664,7 +664,8 @@ Event
action=function(id,event,param)
if event==F.VE_READ then
local xpanel=0
if far.AdvControl(F.ACTL_GETWINDOWTYPE).Type==F.WTYPE_PANELS then
local winType=far.AdvControl(F.ACTL_GETWINDOWTYPE)
if winType and winType.Type==F.WTYPE_PANELS then
if panel.GetPanelInfo(nil,0).PanelType==F.PTYPE_INFOPANEL then return end
local type=panel.GetPanelInfo(nil,1).PanelType
if type==F.PTYPE_INFOPANEL then return end
Expand Down

0 comments on commit e3b7f68

Please sign in to comment.