Commit 7b23878b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: do actual screen refreshes in a single call, when possible

parent 5cdadc3e
Showing with 4 additions and 8 deletions
+4 -8
...@@ -411,8 +411,7 @@ void update_the_statusbar(void) ...@@ -411,8 +411,7 @@ void update_the_statusbar(void)
/* Work around a cursor-misplacement bug in VTEs. */ /* Work around a cursor-misplacement bug in VTEs. */
wmove(bottomwin, 0, 0); wmove(bottomwin, 0, 0);
wnoutrefresh(bottomwin); wrefresh(bottomwin);
doupdate();
/* Place the cursor at statusbar_x in the answer. */ /* Place the cursor at statusbar_x in the answer. */
column = base + statusbar_xplustabs(); column = base + statusbar_xplustabs();
......
...@@ -2070,8 +2070,7 @@ void titlebar(const char *path) ...@@ -2070,8 +2070,7 @@ void titlebar(const char *path)
wattroff(topwin, interface_color_pair[TITLE_BAR]); wattroff(topwin, interface_color_pair[TITLE_BAR]);
wnoutrefresh(topwin); wrefresh(topwin);
doupdate();
} }
/* Display a normal message on the statusbar, quietly. */ /* Display a normal message on the statusbar, quietly. */
...@@ -2163,8 +2162,7 @@ void statusline(message_type importance, const char *msg, ...) ...@@ -2163,8 +2162,7 @@ void statusline(message_type importance, const char *msg, ...)
wattroff(bottomwin, interface_color_pair[STATUS_BAR]); wattroff(bottomwin, interface_color_pair[STATUS_BAR]);
/* Push the message to the screen straightaway. */ /* Push the message to the screen straightaway. */
wnoutrefresh(bottomwin); wrefresh(bottomwin);
doupdate();
suppress_cursorpos = TRUE; suppress_cursorpos = TRUE;
...@@ -2242,8 +2240,7 @@ void bottombars(int menu) ...@@ -2242,8 +2240,7 @@ void bottombars(int menu)
/* Defeat a VTE bug by moving the cursor and forcing a screen update. */ /* Defeat a VTE bug by moving the cursor and forcing a screen update. */
wmove(bottomwin, 0, 0); wmove(bottomwin, 0, 0);
wnoutrefresh(bottomwin); wrefresh(bottomwin);
doupdate();
} }
/* Write a shortcut key to the help area at the bottom of the window. /* Write a shortcut key to the help area at the bottom of the window.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment