diff options
author | 2007-08-11 18:37:00 -0400 | |
---|---|---|
committer | 2007-08-11 18:37:00 -0400 | |
commit | a8c20228dc197cb2f947ec123b741468baed51d2 (patch) | |
tree | 03e1fdd7f7fc34df0f0b21e6b6cf7cd7beafbd86 /modules/textadept | |
parent | 1dc88b9de221b380cd525513e9e5a3c7c4d45698 (diff) | |
download | textadept-a8c20228dc197cb2f947ec123b741468baed51d2.tar.gz textadept-a8c20228dc197cb2f947ec123b741468baed51d2.zip |
MLines' update is now a single undo action; modules/textadept/mlines.lua
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/mlines.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |