Added doc:rename command; changed command_view:set_text to take select argument

This commit is contained in:
rxi
2020-05-09 16:09:07 +01:00
parent 7479c1380d
commit 70f62f3c8a
3 changed files with 25 additions and 9 deletions
+4 -1
View File
@@ -70,9 +70,12 @@ function CommandView:get_text()
end
function CommandView:set_text(text)
function CommandView:set_text(text, select)
self.doc:remove(1, 1, math.huge, math.huge)
self.doc:text_input(text)
if select then
self.doc:set_selection(math.huge, math.huge, 1, 1)
end
end