From 38788d01b42165d916467f8aec84121d5c1f6fe0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 1 Sep 2013 23:20:30 -0400 Subject: Renamed `buffer:get_style_name(n)` to `buffer.style_name[n]`. --- modules/textadept/adeptsense.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/adeptsense.lua') 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 -- cgit v1.2.3