summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-18 22:13:29 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-18 22:13:29 +0100
commitd96ff165113ce5fe62107add590997660e3d4802 (patch)
treed5325a3edba6291b0a6527cdfc1aaa334405327c /src/normal.c
parent4287ed33ddc324d26dd05d3e19596dd74cf479d6 (diff)
downloadvim-git-d96ff165113ce5fe62107add590997660e3d4802.tar.gz
patch 8.0.1523: cannot write and read terminal screendumpsv8.0.1523
Problem: Cannot write and read terminal screendumps. Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff(). Also add assert_equalfile().
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 31ec36306..c234c3206 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -7474,6 +7474,11 @@ v_visop(cmdarg_T *cap)
static void
nv_subst(cmdarg_T *cap)
{
+#ifdef FEAT_TERMINAL
+ /* When showing output of term_dumpdiff() swap the top and botom. */
+ if (term_swap_diff() == OK)
+ return;
+#endif
if (VIsual_active) /* "vs" and "vS" are the same as "vc" */
{
if (cap->cmdchar == 'S')