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

This commit is contained in:
rxi committed 2020-05-09 16:09:07 +01:00
1 parent 7479c1380d
commit 70f62f3c8a
3 files changed
+25 -9

No files matched your search

+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