Code

When updating the title window, move the cursor to the end of line
authorJonas Fonseca <fonseca@diku.dk>
Fri, 26 May 2006 20:09:50 +0000 (22:09 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Fri, 26 May 2006 20:09:50 +0000 (22:09 +0200)
This way the cursor (hopefully) won't feel so jumpy.

tig.c

diff --git a/tig.c b/tig.c
index f7446576c46e41a672157aac77ff239314f40601..cba8c82da3ee794e69e0772403407c8cb538e7bc 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -857,7 +857,7 @@ update_view_title(struct view *view)
                        wprintw(view->title, " %lds", secs);
        }
 
-
+       wmove(view->title, 0, view->width - 1);
        wrefresh(view->title);
 }