0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1961: various comments can be improved

Problem:    Various comments can be improved.
Solution:   Various comment adjustments.
This commit is contained in:
Bram Moolenaar
2020-11-05 20:50:51 +01:00
parent 0fd797eacd
commit 22286895fc
7 changed files with 9 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ static dict_T *first_dict = NULL;
/* /*
* Allocate an empty header for a dictionary. * Allocate an empty header for a dictionary.
* Caller should take care of the reference count.
*/ */
dict_T * dict_T *
dict_alloc(void) dict_alloc(void)

View File

@@ -1242,7 +1242,6 @@ add_pixmap_args(vimmenu_T *menu, Arg *args, int n)
} }
else else
{ {
// Test_colorscheme()
if (menu->xpm_fname != NULL) if (menu->xpm_fname != NULL)
{ {
XtSetArg(args[n], XmNpixmapFile, menu->xpm_fname); n++; XtSetArg(args[n], XmNpixmapFile, menu->xpm_fname); n++;

View File

@@ -1688,7 +1688,8 @@ struct funccall_S
#ifdef FEAT_PROFILE #ifdef FEAT_PROFILE
proftime_T prof_child; // time spent in a child proftime_T prof_child; // time spent in a child
#endif #endif
funccall_T *caller; // calling function or NULL funccall_T *caller; // calling function or NULL; or next funccal in
// list pointed to by previous_funccal.
// for closure // for closure
int fc_refcount; // number of user functions that reference this int fc_refcount; // number of user functions that reference this

View File

@@ -223,7 +223,7 @@ func s:feedkeys(timer)
call feedkeys('x', 'nt') call feedkeys('x', 'nt')
endfunc endfunc
" Get $VIMPROG to run Vim executable. " Get $VIMPROG to run the Vim executable.
" The Makefile writes it as the first line in the "vimcmd" file. " The Makefile writes it as the first line in the "vimcmd" file.
func GetVimProg() func GetVimProg()
if !filereadable('vimcmd') if !filereadable('vimcmd')

View File

@@ -845,6 +845,7 @@ func Nb_quit_with_conn(port)
call writefile([], "Xnetbeans") call writefile([], "Xnetbeans")
let after =<< trim END let after =<< trim END
source shared.vim source shared.vim
set cpo&vim
func ReadXnetbeans() func ReadXnetbeans()
let l = readfile("Xnetbeans") let l = readfile("Xnetbeans")

View File

@@ -497,10 +497,12 @@ check_due_timer(void)
may_garbage_collect = FALSE; may_garbage_collect = FALSE;
save_vimvars(&vvsave); save_vimvars(&vvsave);
// Invoke the callback.
timer->tr_firing = TRUE; timer->tr_firing = TRUE;
timer_callback(timer); timer_callback(timer);
timer->tr_firing = FALSE; timer->tr_firing = FALSE;
// Restore stuff.
timer_next = timer->tr_next; timer_next = timer->tr_next;
did_one = TRUE; did_one = TRUE;
timer_busy = save_timer_busy; timer_busy = save_timer_busy;

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1961,
/**/ /**/
1960, 1960,
/**/ /**/