Mercurial > vim
comparison src/testdir/test_signs.vim @ 15388:7444fffa482d v8.1.0702
patch 8.1.0702: ":sign place" only uses the current buffer
commit https://github.com/vim/vim/commit/b589f95b38ddd779d7e696abb0ea011dc92ea903
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 7 22:10:00 2019 +0100
patch 8.1.0702: ":sign place" only uses the current buffer
Problem: ":sign place" only uses the current buffer.
Solution: List signs for all buffers when there is no buffer argument.
Fix error message for invalid buffer name in sign_place().
(Yegappan Lakshmanan, closes #3774)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Jan 2019 22:15:04 +0100 |
parents | 317846db300a |
children | 51b3c36b0523 |
comparison
equal
deleted
inserted
replaced
15387:6793601c7f2e | 15388:7444fffa482d |
---|---|
661 " :sign place | 661 " :sign place |
662 let a = execute('sign place') | 662 let a = execute('sign place') |
663 call assert_equal("\n--- Signs ---\nSigns for Xsign:\n" . | 663 call assert_equal("\n--- Signs ---\nSigns for Xsign:\n" . |
664 \ " line=10 id=5 name=sign1 priority=10\n", a) | 664 \ " line=10 id=5 name=sign1 priority=10\n", a) |
665 | 665 |
666 " Place signs in more than one buffer and list the signs | |
667 split foo | |
668 set buftype=nofile | |
669 sign place 25 line=76 name=sign1 priority=99 file=foo | |
670 let a = execute('sign place') | |
671 call assert_equal("\n--- Signs ---\nSigns for Xsign:\n" . | |
672 \ " line=10 id=5 name=sign1 priority=10\n" . | |
673 \ "Signs for foo:\n" . | |
674 \ " line=76 id=25 name=sign1 priority=99\n", a) | |
675 close | |
676 bwipe foo | |
677 | |
666 " :sign place group={group} | 678 " :sign place group={group} |
667 let a = execute('sign place group=g1') | 679 let a = execute('sign place group=g1') |
668 call assert_equal("\n--- Signs ---\nSigns for Xsign:\n" . | 680 call assert_equal("\n--- Signs ---\nSigns for Xsign:\n" . |
669 \ " line=11 id=5 group=g1 name=sign1 priority=10\n", a) | 681 \ " line=11 id=5 group=g1 name=sign1 priority=10\n", a) |
670 | 682 |