diff options
-rw-r--r-- | modules/textadept/menu.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 13d42b83..91a0d60a 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -218,6 +218,7 @@ local default_menubar = { {_L['Show St_yle'], function() local char = buffer:text_range(buffer.current_pos, buffer:position_after(buffer.current_pos)) + if char == '' then return end -- end of buffer local bytes = string.rep(' 0x%X', #char):format(char:byte(1, #char)) local style = buffer.style_at[buffer.current_pos] local text = string.format("'%s' (U+%04X:%s)\n%s %s\n%s %s (%d)", char, |