From a8c20228dc197cb2f947ec123b741468baed51d2 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 11 Aug 2007 18:37:00 -0400 Subject: MLines' update is now a single undo action; modules/textadept/mlines.lua --- modules/textadept/mlines.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/textadept/mlines.lua b/modules/textadept/mlines.lua index 512834de..48059a64 100644 --- a/modules/textadept/mlines.lua +++ b/modules/textadept/mlines.lua @@ -106,6 +106,7 @@ function update() local buffer = buffer local curr_line = buffer:line_from_position(buffer.current_pos) local curr_col = buffer.column[buffer.current_pos] + buffer:begin_undo_action() if mlines[curr_line] then local s = buffer:find_column( curr_line, mlines[curr_line].start_col ) local e = buffer:find_column(curr_line, curr_col) @@ -131,4 +132,5 @@ function update() end mlines[curr_line].start_col = curr_col end + buffer:end_undo_action() end -- cgit v1.2.3