aboutsummaryrefslogtreecommitdiffstats
path: root/clients/urwid/main.py
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-20 06:13:40 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-04-20 06:13:40 -0500
commit6e959a510eeb3959dabfa49dd08e2d6765fe6186 (patch)
tree99b639f933a85f51c401a0a076e10859862585a2 /clients/urwid/main.py
parent60c5f9aad1d9442a829ac5651fc80e5f6363596f (diff)
downloadbbj-6e959a510eeb3959dabfa49dd08e2d6765fe6186.tar.gz
goto top/bottom when submitting
Diffstat (limited to 'clients/urwid/main.py')
-rw-r--r--clients/urwid/main.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py
index afb1c90..1e9bdbd 100644
--- a/clients/urwid/main.py
+++ b/clients/urwid/main.py
@@ -1514,9 +1514,13 @@ class ExternalEditor(urwid.Terminal):
if body and not re.search("^>>[0-9]+$", body):
self.params.update({"body": body})
network.request(self.endpoint, **self.params)
- return app.refresh()
+ app.refresh()
+ if app.mode == "thread":
+ app.goto_post(app.thread["reply_count"])
+ else:
+ app.box.keypress(app.loop.screen_size, "t")
else:
- return app.temp_footer_message("EMPTY POST DISCARDED")
+ app.temp_footer_message("EMPTY POST DISCARDED")
def keypress(self, size, key):
Un proyecto texto-plano.xyz