Mercurial > vim
view src/testdir/dotest.in @ 24357:108a6e2497f6 v8.2.2719
patch 8.2.2719: Vim9: appending to dict item doesn't work in a :def function
Commit: https://github.com/vim/vim/commit/e42939af87be3adad8c08ceb454e3a31114d7165
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 5 17:11:17 2021 +0200
patch 8.2.2719: Vim9: appending to dict item doesn't work in a :def function
Problem: Vim9: appending to dict item doesn't work in a :def function.
Solution: Implement assignment with operator on indexed item.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Apr 2021 17:15:06 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
:set cp :map dotest /^STARTTEST j:set ff=unix cpo-=A :.,/ENDTEST/-1w! Xdotest :set ff& cpo+=A nj0:so! Xdotest dotest dotest