Avoid setting mark if switching to the same view

weechat-hashes
Curtis McEnroe 2018-08-12 21:38:25 -04:00
parent 2ec109e246
commit a09df5f697
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -210,8 +210,8 @@ static void uiRedraw(void) {
static void uiView(struct View *view) { static void uiView(struct View *view) {
if (view->topic) touchwin(view->topic); if (view->topic) touchwin(view->topic);
touchwin(view->log); touchwin(view->log);
view->mark = false;
ui.view->mark = true; ui.view->mark = true;
view->mark = false;
ui.view = view; ui.view = view;
} }