commit | 343b8c042967da82f2f022afa31f2c97a264c1c8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Feb 17 12:04:56 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Feb 17 12:04:56 2017 +0100 |
tree | a08119b65459093aa650a99303d30353b10ca3cb | |
parent | 84b2a381451e9068b09ef6d85f5e8cf1598e7355 [diff] [blame] |
patch 8.0.0331: restoring help snapshot accesses freed memory Problem: Restoring help snapshot accesses freed memory. (Dominique Pelle) Solution: Don't restore a snapshot when the window closes.
diff --git a/src/testdir/test_help.vim b/src/testdir/test_help.vim new file mode 100644 index 0000000..ca095d0 --- /dev/null +++ b/src/testdir/test_help.vim
@@ -0,0 +1,10 @@ +" Tests for :help + +func Test_help_restore_snapshot() + help + set buftype= + help + edit x + help + helpclose +endfunc