aboutsummaryrefslogtreecommitdiff
path: root/src/testdir/test104.in
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2014-04-14 13:36:58 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-16 09:32:50 -0300
commitd322be894e532e9148979ab10f3e277f1f359eb1 (patch)
tree16b92a8b8fc0b8ac20d74c1626521a85817d24d4 /src/testdir/test104.in
parenta129ab20e736dd5ec33156a713c325e825547cbb (diff)
downloadrneovim-d322be894e532e9148979ab10f3e277f1f359eb1.tar.gz
rneovim-d322be894e532e9148979ab10f3e277f1f359eb1.tar.bz2
rneovim-d322be894e532e9148979ab10f3e277f1f359eb1.zip
vim-patch:7.4.229
Problem: Using ":let" for listing variables and the second one is a curly braces expression may fail. Solution: Check for an "=" in a better way. (ZyX) https://code.google.com/p/vim/source/detail?r=839cca5ec18d560e3714065e54ed38b6e812aaf7
Diffstat (limited to 'src/testdir/test104.in')
-rw-r--r--src/testdir/test104.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/testdir/test104.in b/src/testdir/test104.in
index f329d2dbed..fd847131e9 100644
--- a/src/testdir/test104.in
+++ b/src/testdir/test104.in
@@ -1,4 +1,4 @@
-Tests for autoload. vim: set ft=vim ts=8 :
+Tests for :let. vim: set ft=vim ts=8 :
STARTTEST
:so small.vim
@@ -10,6 +10,20 @@ STARTTEST
:catch
: $put ='FAIL: ' . v:exception
:endtry
+:let a = 1
+:let b = 2
+:for letargs in ['a b', '{0 == 1 ? "a" : "b"}', '{0 == 1 ? "a" : "b"} a', 'a {0 == 1 ? "a" : "b"}']
+: try
+: redir => messages
+: execute 'let' letargs
+: redir END
+: $put ='OK:'
+: $put =split(substitute(messages, '\n', '\0 ', 'g'), '\n')
+: catch
+: $put ='FAIL: ' . v:exception
+: redir END
+: endtry
+:endfor
:/^Results/,$wq! test.out
ENDTEST