summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08a8567)
raw | patch | inline | side by side (parent: 08a8567)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 24 Nov 2009 03:12:32 +0000 (22:12 -0500) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 24 Nov 2009 03:19:17 +0000 (22:19 -0500) |
... so %(file) works as expected.
NEWS | patch | blob | history | |
tig.c | patch | blob | history |
index 6467e1372b5de8734bb3383180cc1d6a536f01b0..7efc4028efb5dd3d3ae2df3819c647985672928f 100644 (file)
--- a/NEWS
+++ b/NEWS
Release notes
=============
+master
+------
+
+Improvements:
+
+ - Status view: update the file variable when a line is selected so %(file) works as
+ expected.
+
tig-0.15
--------
index 222b3698de6bcc60395ab74519b4c9048e2e5ed6..b20fb1bfa49bb4c9ac9b1bd24481b4df3dea5a8f 100644 (file)
--- a/tig.c
+++ b/tig.c
break;
case REQ_VIEW_BLAME:
- if (status) {
- string_copy(opt_file, status->new.name);
+ if (status)
opt_ref[0] = 0;
- }
return request;
case REQ_ENTER:
}
string_format(view->ref, text, key, file);
+ if (status)
+ string_copy(opt_file, status->new.name);
}
static bool