Mercurial > vim
view src/testdir/test_join.vim @ 9315:1b4946fa3777 v7.4.1940
commit https://github.com/vim/vim/commit/23c60f21b07b04351d846e6fbf4f4abd9aa09345
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 15 22:03:48 2016 +0200
patch 7.4.1940
Problem: "gd" hangs in some situations. (Eric Biggers)
Solution: Remove the SEARCH_START flag when looping. Add a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 15 Jun 2016 22:15:06 +0200 |
parents | dd2e2bd69d0e |
children | 15f0f9f16cd9 |
line wrap: on
line source
" Test for joining lines. func Test_join_with_count() new call setline(1, ['one', 'two', 'three', 'four']) normal J call assert_equal('one two', getline(1)) %del call setline(1, ['one', 'two', 'three', 'four']) normal 10J call assert_equal('one two three four', getline(1)) quit! endfunc