diff options
author | 2013-09-01 23:20:30 -0400 | |
---|---|---|
committer | 2013-09-01 23:20:30 -0400 | |
commit | 38788d01b42165d916467f8aec84121d5c1f6fe0 (patch) | |
tree | 8e4557272ace380e372833d364859c4a7b9e6a00 /modules/textadept/adeptsense.lua | |
parent | d633a4c74e824113f5d242cb18573fed3015bc27 (diff) | |
download | textadept-38788d01b42165d916467f8aec84121d5c1f6fe0.tar.gz textadept-38788d01b42165d916467f8aec84121d5c1f6fe0.zip |
Renamed `buffer:get_style_name(n)` to `buffer.style_name[n]`.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 8f4bdacd..2898bc0c 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -470,7 +470,7 @@ function M.get_class(sense, symbol) if class then -- The type declaration should not be in a comment or string. local pos = buffer:position_from_line(i) - local style = buffer:get_style_name(buffer.style_at[pos + s - 1]) + local style = buffer.style_name[buffer.style_at[pos + s - 1]] if style ~= 'comment' and style ~= 'string' then break end class = nil end |