summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1923cae)
raw | patch | inline | side by side (parent: 1923cae)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 4 Feb 2009 13:35:44 +0000 (14:35 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 5 Feb 2009 20:56:50 +0000 (21:56 +0100) |
tig.c | patch | blob | history |
index d99307e5fdd4cfcba86cf181f47e5fc2206d0273..4990de5f5961311d3b20b4680c82ebadedf10b44 100644 (file)
--- a/tig.c
+++ b/tig.c
enum open_flags {
OPEN_DEFAULT = 0, /* Use default view switching. */
OPEN_SPLIT = 1, /* Split current view. */
- OPEN_BACKGROUNDED = 2, /* Backgrounded. */
OPEN_RELOAD = 4, /* Reload view even if it is the current. */
OPEN_NOMAXIMIZE = 8, /* Do not maximize the current view. */
OPEN_REFRESH = 16, /* Refresh view using previous command. */
static void
open_view(struct view *prev, enum request request, enum open_flags flags)
{
- bool backgrounded = !!(flags & OPEN_BACKGROUNDED);
bool split = !!(flags & OPEN_SPLIT);
bool reload = !!(flags & (OPEN_RELOAD | OPEN_REFRESH | OPEN_PREPARED));
bool nomaximize = !!(flags & (OPEN_NOMAXIMIZE | OPEN_REFRESH));
if (split) {
display[1] = view;
- if (!backgrounded)
- current_view = 1;
+ current_view = 1;
} else if (!nomaximize) {
/* Maximize the current view. */
memset(display, 0, sizeof(display));
}
if (prev && view != prev) {
- if (split && !backgrounded) {
+ if (split) {
/* "Blur" the previous view. */
update_view_title(prev);
}
redraw_view(view);
report("");
}
-
- /* If the view is backgrounded the above calls to report()
- * won't redraw the view title. */
- if (backgrounded)
- update_view_title(view);
}
static void