Skip to content

Commit

Permalink
patch 8.1.0076: command getting cleared with CTRL-W : in a terminal w…
Browse files Browse the repository at this point in the history
…indow

Problem:    Command getting cleared with CTRL-W : in a terminal window. (Jason
            Franklin)
Solution:   Call redraw_after_callback() when editing the command line.
  • Loading branch information
brammool committed Jun 18, 2018
1 parent 252b7ee commit 0ce7413
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,11 +973,13 @@ write_to_term(buf_T *buffer, char_u *msg, channel_T *channel)
* contents, thus no screen update is needed. */
if (!term->tl_normal_mode)
{
/* TODO: only update once in a while. */
// Don't use update_screen() when editing the command line, it gets
// cleared.
// TODO: only update once in a while.
ch_log(term->tl_job->jv_channel, "updating screen");
if (buffer == curbuf)
if (buffer == curbuf && (State & CMDLINE) == 0)
{
update_screen(0);
update_screen(VALID_NO_UPDATE);
/* update_screen() can be slow, check the terminal wasn't closed
* already */
if (buffer == curbuf && curbuf->b_term != NULL)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
76,
/**/
75,
/**/
Expand Down

0 comments on commit 0ce7413

Please sign in to comment.