0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.1523: cannot write and read terminal screendumps

Problem:    Cannot write and read terminal screendumps.
Solution:   Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
            Also add assert_equalfile().
This commit is contained in:
Bram Moolenaar
2018-02-18 22:13:29 +01:00
parent 4287ed33dd
commit d96ff16511
9 changed files with 1017 additions and 37 deletions

View File

@@ -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')