}
// display alternate file name
- if ((arg == NULL || vim_strchr(arg, '%') != NULL) && !got_int)
+ if ((arg == NULL || vim_strchr(arg, '#') != NULL) && !got_int)
{
char_u *fname;
linenr_T dummy;
" these commands work in the sandbox
let a = execute('sandbox display')
" When X11 connection is not available, there is a warning W23
- " filter this out (we could also run the :display comamand twice)
+ " filter this out (we could also run the :display command twice)
let a = substitute(a, 'W23.*0\n', '', '')
let b = execute('sandbox registers')
call assert_match('^\nType Name Content\n'
\ . ' c ": ls', a)
+ let a = execute('registers %')
+ call assert_match('^\nType Name Content\n'
+ \ . ' c "% file2', a)
+
+ let a = execute('registers #')
+ call assert_match('^\nType Name Content\n'
+ \ . ' c "# file1', a)
+
bwipe!
endfunc