chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531c6c6
)
Fix updating of the view title to show the current position in the view
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 19 Aug 2007 08:44:39 +0000
(10:44 +0200)
committer
Jonas Fonseca
<fonseca@diku.dk>
Sun, 19 Aug 2007 08:44:39 +0000
(10:44 +0200)
It regressed in
11359638c5dfc91b4b14a003a0519b2a5bc7f89d
.
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 7c380e4ef9e5ab8dcfad29697d2547cabb36f840..02280070025b7a060ed2708b4d8a34b107cc2099 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-1371,7
+1371,7
@@
update_view_title(struct view *view)
assert(view_is_displayed(view));
- if (
!
VIEW(REQ_VIEW_STATUS) && (view->lines || view->pipe)) {
+ if (
view !=
VIEW(REQ_VIEW_STATUS) && (view->lines || view->pipe)) {
unsigned int view_lines = view->offset + view->height;
unsigned int lines = view->lines
? MIN(view_lines, view->lines) * 100 / view->lines