Mercurial > vim
view src/testdir/test_preview.vim @ 17223:07bbe73b8e74 v8.1.1611
patch 8.1.1611: bufadd() reuses existing buffer without a name
commit https://github.com/vim/vim/commit/892ae723ab95e429222e930cf41b32809567e58e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 30 20:33:01 2019 +0200
patch 8.1.1611: bufadd() reuses existing buffer without a name
Problem: Bufadd() reuses existing buffer without a name.
Solution: When the name is empty always create a new buffer.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jun 2019 20:45:05 +0200 |
parents | 5e36b2f825cb |
children | 068337e86133 |
line wrap: on
line source
" Tests for the preview window func Test_Psearch() " this used to cause ml_get errors help let wincount = winnr('$') 0f ps. call assert_equal(wincount + 1, winnr('$')) pclose call assert_equal(wincount, winnr('$')) bwipe endfunc