Fixed ">" indicator when tidying windows
This commit is contained in:
@@ -621,8 +621,8 @@ void
|
|||||||
ui_close_current(void)
|
ui_close_current(void)
|
||||||
{
|
{
|
||||||
int current_index = wins_get_current_num();
|
int current_index = wins_get_current_num();
|
||||||
wins_close_current();
|
|
||||||
status_bar_inactive(current_index);
|
status_bar_inactive(current_index);
|
||||||
|
wins_close_current();
|
||||||
status_bar_active(1);
|
status_bar_active(1);
|
||||||
title_bar_title();
|
title_bar_title();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,20 @@ status_bar_resize(void)
|
|||||||
dirty = TRUE;
|
dirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
status_bar_set_all_inactive(void)
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
for (i = 0; i < 12; i++) {
|
||||||
|
is_active[i] = FALSE;
|
||||||
|
is_new[i] = FALSE;
|
||||||
|
_mark_inactive(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
g_hash_table_remove_all(remaining_active);
|
||||||
|
g_hash_table_remove_all(remaining_new);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
status_bar_inactive(const int win)
|
status_bar_inactive(const int win)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ void status_bar_inactive(const int win);
|
|||||||
void status_bar_active(const int win);
|
void status_bar_active(const int win);
|
||||||
void status_bar_new(const int win);
|
void status_bar_new(const int win);
|
||||||
void status_bar_update_time(void);
|
void status_bar_update_time(void);
|
||||||
|
void status_bar_set_all_inactive(void);
|
||||||
|
|
||||||
// input window actions
|
// input window actions
|
||||||
wint_t inp_get_char(char *input, int *size);
|
wint_t inp_get_char(char *input, int *size);
|
||||||
|
|||||||
@@ -332,10 +332,7 @@ wins_tidy(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tidy_required) {
|
if (tidy_required) {
|
||||||
int i = 0;
|
status_bar_set_all_inactive();
|
||||||
for (i = 0; i < 12; i++) {
|
|
||||||
status_bar_inactive(i);
|
|
||||||
}
|
|
||||||
GHashTable *new_windows = g_hash_table_new_full(g_direct_hash,
|
GHashTable *new_windows = g_hash_table_new_full(g_direct_hash,
|
||||||
g_direct_equal, NULL, (GDestroyNotify)win_free);
|
g_direct_equal, NULL, (GDestroyNotify)win_free);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user