aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-11-16 15:19:00 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2007-11-16 15:19:00 -0500
commite41d14b9f3b74018278f63bf7ca71316a1b36838 (patch)
treeae90cea800dfb5a4a07a5af70827c8bb5dbbdafb
parent266867f56f6932d5879c3e3ed790ba48caab2a4d (diff)
downloadtextadept-e41d14b9f3b74018278f63bf7ca71316a1b36838.tar.gz
textadept-e41d14b9f3b74018278f63bf7ca71316a1b36838.zip
Fixed assertion error caused by replace_target; modules/textadept/editing.lua
-rw-r--r--modules/textadept/editing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index ac9037da..4c5b1044 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -248,7 +248,7 @@ function prepare_for_save()
end
if i < e - 1 then
buffer.target_start, buffer.target_end = i + 1, e
- buffer:replace_target()
+ buffer:replace_target('')
end
end
-- Ensure ending newline.