Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 22260:d7c1e3efa88e v8.2.1679
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Commit: https://github.com/vim/vim/commit/3bd8de40b484d3617a19092d3cc036f8b4f3d51c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 14 16:37:34 2020 +0200
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes https://github.com/vim/vim/issues/6838)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Sep 2020 16:45:04 +0200 |
parents | 6941d3205be9 |
children | 4c488004edbc |
comparison
equal
deleted
inserted
replaced
22259:70b887aaedf1 | 22260:d7c1e3efa88e |
---|---|
328 assert_equal('below', getline(4)) | 328 assert_equal('below', getline(4)) |
329 | 329 |
330 bwipe! | 330 bwipe! |
331 enddef | 331 enddef |
332 | 332 |
333 def Test_command_star_range() | |
334 new | |
335 setline(1, ['xxx foo xxx', 'xxx bar xxx', 'xxx foo xx bar']) | |
336 setpos("'<", [0, 1, 0, 0]) | |
337 setpos("'>", [0, 3, 0, 0]) | |
338 :*s/\(foo\|bar\)/baz/g | |
339 getline(1, 3)->assert_equal(['xxx baz xxx', 'xxx baz xxx', 'xxx baz xx baz']) | |
340 | |
341 bwipe! | |
342 enddef | |
343 | |
333 | 344 |
334 | 345 |
335 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 346 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |