From 6d2a5a5bb0b7c2867331d7c77c6d4ee99967bcbc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 4 Oct 2011 22:55:37 +0200 Subject: Nope, one more fix... --- src/tool_text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_text.c') diff --git a/src/tool_text.c b/src/tool_text.c index 53abe19..88572af 100644 --- a/src/tool_text.c +++ b/src/tool_text.c @@ -278,9 +278,9 @@ void handle_text_backspace(struct object *op) if ( o->insertion_point == 0 ) return; /* Nothing to delete */ - old_idx = o->insertion_point; + old_idx = o->insertion_point + o->insertion_trail; move_cursor_left(op); - new_idx = o->insertion_point; + new_idx = o->insertion_point + o->insertion_trail; memmove(o->text+new_idx, o->text+old_idx, o->text_len-new_idx); -- cgit v1.2.3