mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
@@ -1685,7 +1685,7 @@ Array nvim_call_atomic(uint64_t channel_id, Array calls, Arena *arena, Error *er
|
||||
// error handled after loop
|
||||
break;
|
||||
}
|
||||
// TODO(bfredl): wastefull copy. It could be avoided to encoding to msgpack
|
||||
// TODO(bfredl): wasteful copy. It could be avoided to encoding to msgpack
|
||||
// directly here. But `result` might become invalid when next api function
|
||||
// is called in the loop.
|
||||
ADD_C(results, copy_object(result, arena));
|
||||
|
@@ -2351,7 +2351,7 @@ static void expand_shellcmd(char *filepat, int *num_file, char ***file, int flag
|
||||
}
|
||||
|
||||
// Go over all directories in $PATH. Expand matches in that directory and
|
||||
// collect them in "ga". When "." is not in $PATH also expaned for the
|
||||
// collect them in "ga". When "." is not in $PATH also expand for the
|
||||
// current directory, to find "subdir/cmd".
|
||||
ga_init(&ga, (int)sizeof(char *), 10);
|
||||
hashtab_T found_ht;
|
||||
|
@@ -62,7 +62,7 @@
|
||||
#define EX_FLAGS 0x200000u // allow flags after count in argument
|
||||
#define EX_LOCK_OK 0x1000000u // command can be executed when textlock is
|
||||
// set; when missing disallows editing another
|
||||
// buffer when current buffer is locked
|
||||
// buffer when curbuf->b_ro_locked is set
|
||||
#define EX_KEEPSCRIPT 0x4000000u // keep sctx of where command was invoked
|
||||
#define EX_PREVIEW 0x8000000u // allow incremental command preview
|
||||
#define EX_FILES (EX_XFILE | EX_EXTRA) // multiple extra files allowed
|
||||
|
@@ -550,7 +550,7 @@ func Test_argdo()
|
||||
bwipe Xa.c Xb.c Xc.c
|
||||
endfunc
|
||||
|
||||
" Test for quiting Vim with unedited files in the argument list
|
||||
" Test for quitting Vim with unedited files in the argument list
|
||||
func Test_quit_with_arglist()
|
||||
if !CanRunVimInTerminal()
|
||||
throw 'Skipped: cannot run vim in terminal'
|
||||
|
@@ -52,7 +52,7 @@ func Test_langmap()
|
||||
set langmap=RL
|
||||
let g:counter = 0
|
||||
nnoremap L;L <Cmd>let g:counter += 1<CR>
|
||||
nnoremap <C-L> <Cmd>throw 'This mapping shoud not be triggered'<CR>
|
||||
nnoremap <C-L> <Cmd>throw 'This mapping should not be triggered'<CR>
|
||||
|
||||
" 'langmap' is applied to keys without modifiers when matching a mapping
|
||||
call feedkeys('R;R', 'tx')
|
||||
|
@@ -429,7 +429,7 @@ func Test_menu_special()
|
||||
nunmenu Test.Sign
|
||||
endfunc
|
||||
|
||||
" Test for "icon=filname" in a toolbar
|
||||
" Test for "icon=filename" in a toolbar
|
||||
func Test_menu_icon()
|
||||
CheckFeature toolbar
|
||||
nmenu icon=myicon.xpm Toolbar.Foo :echo "Foo"<CR>
|
||||
|
@@ -3251,7 +3251,7 @@ func Test_cclose_in_autocmd()
|
||||
" call test_override('starting', 0)
|
||||
endfunc
|
||||
|
||||
" Check that ":file" without an argument is possible even when curbuf is locked
|
||||
" Check that ":file" without an argument is possible even when "curbuf->b_ro_locked"
|
||||
" is set.
|
||||
func Test_file_from_copen()
|
||||
" Works without argument.
|
||||
|
@@ -97,7 +97,7 @@ func Test_vartabs()
|
||||
.retab!
|
||||
call assert_equal("\t\t\t\tl", getline(1))
|
||||
|
||||
" Test for 'retab' with same vlaues as vts
|
||||
" Test for 'retab' with same values as vts
|
||||
set ts=8 sts=0 vts=5,3,6,2 vsts=
|
||||
exe "norm! S l"
|
||||
.retab! 5,3,6,2
|
||||
|
@@ -1281,7 +1281,7 @@ func Test_visual_block_with_virtualedit()
|
||||
endfunc
|
||||
|
||||
func Test_visual_block_ctrl_w_f()
|
||||
" Emtpy block selected in new buffer should not result in an error.
|
||||
" Empty block selected in new buffer should not result in an error.
|
||||
au! BufNew foo sil norm f
|
||||
edit foo
|
||||
|
||||
|
@@ -357,7 +357,7 @@ typedef struct {
|
||||
int arg_len;
|
||||
} ExprASTError;
|
||||
|
||||
/// Structure representing complety AST for one expression
|
||||
/// Structure representing complete AST for one expression
|
||||
typedef struct {
|
||||
/// When AST is not correct this message will be printed.
|
||||
///
|
||||
|
Reference in New Issue
Block a user