diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-18 22:13:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-18 22:13:29 +0100 |
commit | d96ff165113ce5fe62107add590997660e3d4802 (patch) | |
tree | d5325a3edba6291b0a6527cdfc1aaa334405327c /src/normal.c | |
parent | 4287ed33ddc324d26dd05d3e19596dd74cf479d6 (diff) | |
download | vim-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.c | 5 |
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') |