From f2374c4aba53fa462dc88d4104e10d8cb97e61ba Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 25 May 2020 21:16:01 -0400 Subject: Allow views to be used as buffers and update API. This allows for a superficial separation of buffer- and view-specific Scintilla functionality. buffers and views can now be used interchangeably for the most part, and the APIs are guidance, not hard requirements. User scripts do not require any modification and will continue to function normally. --- modules/textadept/command_entry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept/command_entry.lua') diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index 29bea5b0..001dfa14 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -105,7 +105,7 @@ local function run_lua(code) end table.sort(items) result = string.format('{%s}', table.concat(items, ', ')) - if buffer.edge_column > 0 and #result > buffer.edge_column then + if view.edge_column > 0 and #result > view.edge_column then local indent = string.rep(' ', buffer.tab_width) result = string.format( '{\n%s%s\n}', indent, table.concat(items, ',\n' .. indent)) -- cgit v1.2.3