neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c690f1019477e4c9a63e22e7c68bf1f65cc69fc7
parent 3c4890d1efe7c23c0bff7bc4532f19cf03c94e04
Author: Sean Dewar <seandewar@users.noreply.github.com>
Date:   Sat, 11 Sep 2021 21:40:10 +0100

vim-patch:8.2.1524: no longer get an error for string concatenation with float

Problem:    No longer get an error for string concatenation with float.
            (Tsuyoshi Cho)
Solution:   Only convert float for Vim9 script. (closes vim/vim#6787)

https://github.com/vim/vim/commit/2e0866128b6266829a7f38733d5188bc4ec68745

Vim9script is N/A.

Required for v8.2.2949.

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Mtest/old/testdir/test_eval_stuff.vim | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim @@ -230,6 +230,12 @@ func Test_string_concatenation() let a = 'a' let a..=b call assert_equal('ab', a) + + if has('float') + let a = 'A' + let b = 1.234 + call assert_fails('echo a .. b', 'E806:') + endif endfunc " Test fix for issue #4507