'inccommand': Introduce CMDPREVIEW state.

Command "live preview" is fundamentally a non-recursive concept
("preview of a preview" is not useful). Maintaining this as a
global is less awkward and closer to what we actually want to
express, vs adorning exarg_T, CommandLineState, etc.
This commit is contained in:
Justin M. Keyes
2016-11-15 00:10:39 +01:00
parent 708617ebb6
commit 3f7a2d785d
7 changed files with 37 additions and 36 deletions

View File

@@ -955,7 +955,6 @@ static void invalidate_terminal(Terminal *term, int start_row, int end_row)
static void refresh_terminal(Terminal *term)
{
// TODO(SplinterOfChaos): Find the condition that makes term->buf invalid.
buf_T *buf = handle_get_buffer(term->buf_handle);
bool valid = true;
if (!buf || !(valid = buf_valid(buf))) {