Skip to content

Commit 3d2d2ae

Browse files
authored
Merge pull request #63 from cloudy-dev/patch-1
Fix crash when switching through video files too fast
2 parents 538f130 + 7bb6dd0 commit 3d2d2ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modernx.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,11 @@ function osc_init()
25562556
title = string.gsub(title, '\\N', ' ')
25572557
return not (title == "") and title or "error"
25582558
else
2559-
return string.gsub(state.localDescription, '\\N', ' ')
2559+
if(state.localDescription == nil) then
2560+
return ""
2561+
else
2562+
return string.gsub(state.localDescription, '\\N', ' ')
2563+
end
25602564
end
25612565
end
25622566
ne.eventresponder['mbtn_left_up'] =

0 commit comments

Comments
 (0)