Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
7b23878b
Commit
7b23878b
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: do actual screen refreshes in a single call, when possible
parent
5cdadc3e
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/prompt.c
+1
-2
src/prompt.c
src/winio.c
+3
-6
src/winio.c
with
4 additions
and
8 deletions
+4
-8
src/prompt.c
View file @
7b23878b
...
...
@@ -411,8 +411,7 @@ void update_the_statusbar(void)
/* Work around a cursor-misplacement bug in VTEs. */
wmove
(
bottomwin
,
0
,
0
);
wnoutrefresh
(
bottomwin
);
doupdate
();
wrefresh
(
bottomwin
);
/* Place the cursor at statusbar_x in the answer. */
column
=
base
+
statusbar_xplustabs
();
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
7b23878b
...
...
@@ -2070,8 +2070,7 @@ void titlebar(const char *path)
wattroff
(
topwin
,
interface_color_pair
[
TITLE_BAR
]);
wnoutrefresh
(
topwin
);
doupdate
();
wrefresh
(
topwin
);
}
/* Display a normal message on the statusbar, quietly. */
...
...
@@ -2163,8 +2162,7 @@ void statusline(message_type importance, const char *msg, ...)
wattroff
(
bottomwin
,
interface_color_pair
[
STATUS_BAR
]);
/* Push the message to the screen straightaway. */
wnoutrefresh
(
bottomwin
);
doupdate
();
wrefresh
(
bottomwin
);
suppress_cursorpos
=
TRUE
;
...
...
@@ -2242,8 +2240,7 @@ void bottombars(int menu)
/* Defeat a VTE bug by moving the cursor and forcing a screen update. */
wmove
(
bottomwin
,
0
,
0
);
wnoutrefresh
(
bottomwin
);
doupdate
();
wrefresh
(
bottomwin
);
}
/* Write a shortcut key to the help area at the bottom of the window.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help