aboutsummaryrefslogtreecommitdiff
path: root/plugins/xcursor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xcursor.lua')
-rw-r--r--plugins/xcursor.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xcursor.lua b/plugins/xcursor.lua
index 740736f..3350d34 100644
--- a/plugins/xcursor.lua
+++ b/plugins/xcursor.lua
@@ -16,7 +16,7 @@
--
local detect = function (c)
- return c:read (4) == "Xcur"
+ return #c >= 4 and c:read (4) == "Xcur"
end
-- https://www.x.org/releases/current/doc/man/man3/Xcursor.3.xhtml