Added doc:rename command; changed command_view:set_text to take select argument
This commit is contained in:
1 parent
7479c1380d
commit
70f62f3c8a
3 files changed
+25
-9
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user