Just use set_text
This commit is contained in:
parent
9d5729cc03
commit
e47fbd28d5
|
@ -352,11 +352,8 @@ function prompt:stop()
|
||||||
local wp = self._private
|
local wp = self._private
|
||||||
wp.state = false
|
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
|
if self.reset_on_stop == true then
|
||||||
wp.text = ""
|
self:set_text("")
|
||||||
end
|
end
|
||||||
|
|
||||||
awful.keygrabber.stop(wp.grabber)
|
awful.keygrabber.stop(wp.grabber)
|
||||||
|
|
Loading…
Reference in New Issue