Mercurial > vim
view src/testdir/test_argument_count.in @ 7125:52a7ba315f03 v7.4.874
commit https://github.com/vim/vim/commit/8919554fe17255cddbbce6b833fab9aba19c8b88
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 25 15:00:31 2015 +0200
patch 7.4.874
Problem: MS-Windows: When Vim runs inside another application, the size
isn't right.
Solution: When in child mode compute the size differently. (Agorgianitis
Loukas)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 25 Sep 2015 15:15:04 +0200 |
parents | 22f95a018b13 |
children |
line wrap: on
line source
Tests for :[count]argument! and :[count]argdelete vim: set ft=vim : STARTTEST :so small.vim :%argd :argadd a b c d :set hidden :let buffers = [] :augroup TEST :au BufEnter * call add(buffers, expand('%:t')) :augroup END :$argu :$-argu :-argu :1argu :+2argu :augroup TEST :au! :augroup END :let arglists = [] :.argd :call add(arglists, argv()) :-argd :call add(arglists, argv()) :$argd :call add(arglists, argv()) :1arga c :1arga b :$argu :$arga x :call add(arglists, argv()) :0arga Y :call add(arglists, argv()) :%argd :call add(arglists, argv()) :arga a b c d e f :2,$-argd :call add(arglists, argv()) :e! test.out :call append(0, buffers) :let lnr = line('$') :call append(lnr, map(copy(arglists), 'join(v:val, " ")')) :w :qa! ENDTEST