diff options
author | 2016-04-16 12:56:11 -0400 | |
---|---|---|
committer | 2016-04-16 12:56:11 -0400 | |
commit | 66eb8256f829ddc5e0a3961428f9e986187b9f7a (patch) | |
tree | b4c86a1f88abf96347bfda6d4631c6fc9cfeb128 | |
parent | b4c92b70afa332b107b46029828b2eb091eb3180 (diff) | |
download | textadept-66eb8256f829ddc5e0a3961428f9e986187b9f7a.tar.gz textadept-66eb8256f829ddc5e0a3961428f9e986187b9f7a.zip |
Fixed error when showing style at buffer end; modules/textadept/menu.lua
-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, |