summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 56b6ea5)
raw | patch | inline | side by side (parent: 56b6ea5)
author | Witold Filipczyk <witekfl@poczta.onet.pl> | |
Wed, 8 Aug 2007 12:39:22 +0000 (14:39 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 8 Aug 2007 12:39:30 +0000 (14:39 +0200) |
In diff mode when first or last item is displayed KEY_UP or KEY_DOWN
respectively cause flickering. I know that I should not press
those keys in that situation, but this annoys me anyway.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
respectively cause flickering. I know that I should not press
those keys in that situation, but this annoys me anyway.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history |
index fa2a708b7837f3b235a1a0384a634541082e7384..465de23a17b2310e8aaefb37ff0b2c15f47160bc 100644 (file)
--- a/tig.c
+++ b/tig.c
view->parent == VIEW(REQ_VIEW_MAIN)) ||
(view == VIEW(REQ_VIEW_BLOB) &&
view->parent == VIEW(REQ_VIEW_TREE))) {
+ int line;
+
view = view->parent;
+ line = view->lineno;
move_view(view, request);
if (view_is_displayed(view))
update_view_title(view);
+ if (line == view->lineno)
+ break;
} else {
move_view(view, request);
break;