Just use set_text

This commit is contained in:
Ksaper 2023-02-20 05:11:45 +02:00
parent 9d5729cc03
commit e47fbd28d5
1 changed files with 1 additions and 4 deletions

View File

@ -352,11 +352,8 @@ function prompt:stop()
local wp = self._private
wp.state = false
if self.reset_on_stop == true or wp.cur_pos == nil then
wp.cur_pos = wp.text:wlen() + 1
end
if self.reset_on_stop == true then
wp.text = ""
self:set_text("")
end
awful.keygrabber.stop(wp.grabber)