aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/normal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index abee28e37e..ad811a101a 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -6526,8 +6526,12 @@ static void n_start_visual_mode(int c)
*/
static void nv_window(cmdarg_T *cap)
{
- if (!checkclearop(cap->oap))
- do_window(cap->nchar, cap->count0, NUL); /* everything is in window.c */
+ if (cap->nchar == ':') {
+ // "CTRL-W :" is the same as typing ":"; useful in a terminal window
+ nv_colon(cap);
+ } else if (!checkclearop(cap->oap)) {
+ do_window(cap->nchar, cap->count0, NUL); // everything is in window.c
+ }
}
/*