aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-11-15 00:10:39 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-11-15 04:22:24 +0100
commit3f7a2d785dcc8c3dad341669c83f29779987d9a4 (patch)
treeea4f1e8e75a81a01c0807c61721d93531251b695 /src/nvim/terminal.c
parent708617ebb6aa9f078549646930c73f0755c2c2e6 (diff)
downloadrneovim-3f7a2d785dcc8c3dad341669c83f29779987d9a4.tar.gz
rneovim-3f7a2d785dcc8c3dad341669c83f29779987d9a4.tar.bz2
rneovim-3f7a2d785dcc8c3dad341669c83f29779987d9a4.zip
'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.
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 499716a7a8..bd7b9fc58f 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -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))) {