summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-11 01:35:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-11 01:35:37 +0000
commit308779dd4d79fb2a70e0a7f0d7b7aa5bd7b5b33c (patch)
tree704c32a20460ede6c9ba5d39e23ed4f4361e9a26 /src/fe-text/irssi.c
parent8df077426d5647188914b42ae1e54cff4c8a2cff (diff)
downloadirssi-308779dd4d79fb2a70e0a7f0d7b7aa5bd7b5b33c.zip
freeze/thaw before/after running glib main loop, so the cursor isn't moved
uselessly around. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2772 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c
index 1ceab272..00f5fdc5 100644
--- a/src/fe-text/irssi.c
+++ b/src/fe-text/irssi.c
@@ -347,7 +347,9 @@ int main(int argc, char **argv)
/* Does the same as g_main_run(main_loop), except we
can call our dirty-checker after each iteration */
while (!quitting) {
+ term_refresh_freeze();
g_main_iteration(TRUE);
+ term_refresh_thaw();
if (reload_config) {
/* SIGHUP received, do /RELOAD */