Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 24909:09d222e89a84 v8.2.2992
patch 8.2.2992: Vim9: completion for :disassemble is incomplete
Commit: https://github.com/vim/vim/commit/4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 18:38:48 2021 +0200
patch 8.2.2992: Vim9: completion for :disassemble is incomplete
Problem: Vim9: completion for :disassemble is incomplete.
Solution: Recognize the "debug" and "profile" arguments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 18:45:03 +0200 |
parents | 8388176a0954 |
children | df3d056b4663 |
comparison
equal
deleted
inserted
replaced
24908:f2d35a98ae9c | 24909:09d222e89a84 |
---|---|
807 " completion for vim9 and legacy commands | 807 " completion for vim9 and legacy commands |
808 call feedkeys(":vim9 call strle\<C-A>\<C-B>\"\<CR>", 'xt') | 808 call feedkeys(":vim9 call strle\<C-A>\<C-B>\"\<CR>", 'xt') |
809 call assert_equal("\"vim9 call strlen(", @:) | 809 call assert_equal("\"vim9 call strlen(", @:) |
810 call feedkeys(":legac call strle\<C-A>\<C-B>\"\<CR>", 'xt') | 810 call feedkeys(":legac call strle\<C-A>\<C-B>\"\<CR>", 'xt') |
811 call assert_equal("\"legac call strlen(", @:) | 811 call assert_equal("\"legac call strlen(", @:) |
812 | |
813 " completion for the :disassemble command | |
814 call feedkeys(":disas deb\<C-A>\<C-B>\"\<CR>", 'xt') | |
815 call assert_equal("\"disas debug", @:) | |
816 call feedkeys(":disas pro\<C-A>\<C-B>\"\<CR>", 'xt') | |
817 call assert_equal("\"disas profile", @:) | |
818 call feedkeys(":disas debug Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt') | |
819 call assert_equal("\"disas debug Test_cmdline_complete_various", @:) | |
820 call feedkeys(":disas profile Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt') | |
821 call assert_equal("\"disas profile Test_cmdline_complete_various", @:) | |
812 | 822 |
813 " completion for the :match command | 823 " completion for the :match command |
814 call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt') | 824 call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt') |
815 call assert_equal("\"match Search /pat/\<C-A>", @:) | 825 call assert_equal("\"match Search /pat/\<C-A>", @:) |
816 | 826 |