/*
* Recognize a switch label: "case .*:" or "default:".
*/
- static int
+ static int
cin_iscase(
char_u *s,
int strict) // Allow relaxed check of case statement for JS
static int
cin_isif(char_u *p)
{
- return (STRNCMP(p, "if", 2) == 0 && !vim_isIDc(p[2]));
+ return (STRNCMP(p, "if", 2) == 0 && !vim_isIDc(p[2]));
}
static int
&& trypos->lnum == our_paren_pos.lnum
&& trypos->col == our_paren_pos.col)
{
- amount = get_indent_lnum(lnum); // XXX
+ amount = get_indent_lnum(lnum); // XXX
- if (theline[0] == ')')
- {
- if (our_paren_pos.lnum != lnum
- && cur_amount > amount)
- cur_amount = amount;
- amount = -1;
- }
+ if (theline[0] == ')')
+ {
+ if (our_paren_pos.lnum != lnum
+ && cur_amount > amount)
+ cur_amount = amount;
+ amount = -1;
+ }
break;
}
}
{
case '*': try_match = (*look == '*'); break;
case '!': try_match = (*look == '!'); break;
- default: try_match = (*look != '*'); break;
+ default: try_match = (*look != '*'); break;
}
if (*look == '*' || *look == '!')
++look;
#define AUCMD_WIN_COUNT 5
typedef struct {
- win_T *auc_win; // Window used in aucmd_prepbuf(). When not NULL the
- // window has been allocated.
- int auc_win_used; // This auc_win is being used.
+ // Window used in aucmd_prepbuf(). When not NULL the window has been
+ // allocated.
+ win_T *auc_win;
+ int auc_win_used; // This auc_win is being used.
} aucmdwin_T;
EXTERN aucmdwin_T aucmd_win[AUCMD_WIN_COUNT];
// This is VTermScreenCell without the characters, thus much smaller.
typedef struct {
- VTermScreenCellAttrs attrs;
- char width;
- VTermColor fg;
- VTermColor bg;
+ VTermScreenCellAttrs attrs;
+ char width;
+ VTermColor fg;
+ VTermColor bg;
} cellattr_T;
typedef struct sb_line_S {
}
static VTermScreenCallbacks screen_callbacks = {
- handle_damage, // damage
- handle_moverect, // moverect
- handle_movecursor, // movecursor
- handle_settermprop, // settermprop
- handle_bell, // bell
- handle_resize, // resize
- handle_pushline, // sb_pushline
- NULL, // sb_popline
- NULL // sb_clear
+ handle_damage, // damage
+ handle_moverect, // moverect
+ handle_movecursor, // movecursor
+ handle_settermprop, // settermprop
+ handle_bell, // bell
+ handle_resize, // resize
+ handle_pushline, // sb_pushline
+ NULL, // sb_popline
+ NULL // sb_clear
};
/*
}
static VTermStateFallbacks state_fallbacks = {
- NULL, // control
- parse_csi, // csi
- parse_osc, // osc
- NULL, // dcs
- NULL, // apc
- NULL, // pm
- NULL // sos
+ NULL, // control
+ parse_csi, // csi
+ parse_osc, // osc
+ NULL, // dcs
+ NULL, // apc
+ NULL, // pm
+ NULL // sos
};
/*
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1364,
/**/
1363,
/**/