forked from aniani/vim
patch 9.0.0934: various code formatting issues
Problem: Various code formatting issues. Solution: Improve code formatting.
This commit is contained in:
parent
b59ae59a58
commit
24fe33a83a
@ -413,8 +413,7 @@ arglist_del_files(garray_T *alist_ga)
|
||||
|
||||
didone = FALSE;
|
||||
for (match = 0; match < ARGCOUNT; ++match)
|
||||
if (vim_regexec(®match, alist_name(&ARGLIST[match]),
|
||||
(colnr_T)0))
|
||||
if (vim_regexec(®match, alist_name(&ARGLIST[match]), (colnr_T)0))
|
||||
{
|
||||
didone = TRUE;
|
||||
vim_free(ARGLIST[match].ae_fname);
|
||||
|
@ -133,7 +133,7 @@ free_xim_stuff(void)
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
/*
|
||||
* Mark the global 'imactivatefunc' and 'imstatusfunc' callbacks with 'copyID'
|
||||
* Mark the global 'imactivatefunc' and 'imstatusfunc' callbacks with "copyID"
|
||||
* so that they are not garbage collected.
|
||||
*/
|
||||
int
|
||||
|
@ -109,6 +109,8 @@ list_alloc_id(alloc_id_T id UNUSED)
|
||||
|
||||
/*
|
||||
* Allocate space for a list, plus "count" items.
|
||||
* This uses one allocation for efficiency.
|
||||
* The reference count is not set.
|
||||
* Next list_set_item() must be called for each item.
|
||||
*/
|
||||
list_T *
|
||||
@ -117,8 +119,9 @@ list_alloc_with_items(int count)
|
||||
list_T *l;
|
||||
|
||||
l = (list_T *)alloc_clear(sizeof(list_T) + count * sizeof(listitem_T));
|
||||
if (l != NULL)
|
||||
{
|
||||
if (l == NULL)
|
||||
return NULL;
|
||||
|
||||
list_init(l);
|
||||
|
||||
if (count > 0)
|
||||
@ -143,7 +146,7 @@ list_alloc_with_items(int count)
|
||||
++li;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return l;
|
||||
}
|
||||
|
||||
|
@ -1298,8 +1298,7 @@ main_loop(
|
||||
#endif
|
||||
|
||||
// Trigger CursorMoved if the cursor moved.
|
||||
if (!finish_op && (
|
||||
has_cursormoved()
|
||||
if (!finish_op && (has_cursormoved()
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
|| popup_visible
|
||||
#endif
|
||||
@ -1401,10 +1400,8 @@ main_loop(
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Before redrawing, make sure w_topline is correct, and w_leftcol
|
||||
* if lines don't wrap, and w_skipcol if lines wrap.
|
||||
*/
|
||||
// Before redrawing, make sure w_topline is correct, and w_leftcol
|
||||
// if lines don't wrap, and w_skipcol if lines wrap.
|
||||
update_topline();
|
||||
validate_cursor();
|
||||
|
||||
|
@ -3422,7 +3422,7 @@ free_operatorfunc_option(void)
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
/*
|
||||
* Mark the global 'operatorfunc' callback with 'copyID' so that it is not
|
||||
* Mark the global 'operatorfunc' callback with "copyID" so that it is not
|
||||
* garbage collected.
|
||||
*/
|
||||
int
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
934,
|
||||
/**/
|
||||
933,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user