Skip to content
GitLab
Menu
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
c22cd03f
Commit
c22cd03f
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
prompt: work around a VTE bug by outdancing an ncurses optimization
This fixes
https://savannah.gnu.org/bugs/?48852
.
parent
bd1c5d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/prompt.c
+7
-2
src/prompt.c
with
7 additions
and
2 deletions
+7
-2
src/prompt.c
View file @
c22cd03f
...
...
@@ -455,8 +455,15 @@ void reset_statusbar_cursor(void)
size_t
start_col
=
strlenpt
(
prompt
)
+
2
;
size_t
xpt
=
statusbar_xplustabs
();
/* Work around a cursor-misplacement bug in VTEs. */
wmove
(
bottomwin
,
0
,
0
);
wnoutrefresh
(
bottomwin
);
doupdate
();
wmove
(
bottomwin
,
0
,
start_col
+
xpt
-
get_statusbar_page_start
(
start_col
,
start_col
+
xpt
));
wnoutrefresh
(
bottomwin
);
}
/* Repaint the statusbar. */
...
...
@@ -487,7 +494,6 @@ void update_the_statusbar(void)
statusbar_pww
=
statusbar_xplustabs
();
reset_statusbar_cursor
();
wnoutrefresh
(
bottomwin
);
}
/* Update the statusbar line /if/ the placewewant changes page. */
...
...
@@ -672,7 +678,6 @@ functionptrtype get_prompt_string(int *actual, bool allow_tabs,
last_kbinput
=
kbinput
;
#endif
reset_statusbar_cursor
();
wnoutrefresh
(
bottomwin
);
}
#ifndef DISABLE_HISTORIES
...
...
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