Skip to content
Browse files

update lastinsert on more commands

  • Loading branch information...
1 parent 77d45f2 commit fb220ced6723ca495f4a8e782c7fc649e2ba53ad @chneukirchen committed Jan 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tt
View
4 tt
@@ -188,6 +188,7 @@ class TT
@text.mark_set('insert', 'end')
@output.write @hold.get('1.0', 'end')
@text.mark_set('insert', 'end')
+ @text.mark_set('lastinsert', 'insert')
@hold.delete('1.0', 'end')
Tk.callback_break
}
@@ -253,6 +254,7 @@ class TT
@text.mark_set('insert', 'end')
@output.write sel
@text.mark_set('insert', 'end')
+ @text.mark_set('lastinsert', 'insert')
Tk.callback_break
end
@@ -401,6 +403,7 @@ class TT
@text.mark_set('insert', 'end')
@output.write sel
@text.mark_set('insert', 'end')
+ @text.mark_set('lastinsert', 'insert')
end
def clear_cmd
@@ -461,6 +464,7 @@ class TT
else
@output.write cmd + "\n"
@text.mark_set('insert', 'end')
+ @text.mark_set('lastinsert', 'insert')
end
end

0 comments on commit fb220ce

Please sign in to comment.
Something went wrong with that request. Please try again.