This commit is contained in:
Jan Edmund Lazo 2018-08-05 18:02:24 -04:00
parent 47d52e1578
commit 41dbb69a85
5 changed files with 7 additions and 7 deletions

View File

@ -7881,7 +7881,7 @@ static void ins_mousescroll(int dir)
int row = mouse_row;
int col = mouse_col;
/* find the window at the pointer coordinates */
// find the window at the pointer coordinates
win_T *const wp = mouse_find_win(&row, &col);
if (wp == NULL) {
return;

View File

@ -442,7 +442,7 @@ void flush_buffers(int flush_typeahead)
// Reset the flag that text received from a client or from feedkeys()
// was inserted in the typeahead buffer.
typebuf_was_filled = false;
} else { /* remove mapped characters at the start only */
} else { // remove mapped characters at the start only
typebuf.tb_off += typebuf.tb_maplen;
typebuf.tb_len -= typebuf.tb_maplen;
}

View File

@ -165,7 +165,7 @@ open_line (
*p_extra = NUL;
}
u_clearline(); /* cannot do "U" command when adding lines */
u_clearline(); // cannot do "U" command when adding lines
did_si = false;
ai_col = 0;
@ -287,7 +287,7 @@ open_line (
*/
if (last_char == '{') {
did_si = true; // do indent
no_si = TRUE; /* don't delete it when '{' typed */
no_si = true; // don't delete it when '{' typed
}
/*
* Look for "if" and the like, use 'cinwords'.

View File

@ -3994,7 +3994,7 @@ static void nv_mousescroll(cmdarg_T *cap)
row = mouse_row;
col = mouse_col;
/* find the window at the pointer coordinates */
// find the window at the pointer coordinates
win_T *const wp = mouse_find_win(&row, &col);
if (wp == NULL) {
return;

View File

@ -1473,8 +1473,8 @@ int op_delete(oparg_T *oap)
}
if (u_save_cursor() == FAIL)
return FAIL;
if (curbuf->b_p_ai) { /* don't delete indent */
beginline(BL_WHITE); /* cursor on first non-white */
if (curbuf->b_p_ai) { // don't delete indent
beginline(BL_WHITE); // cursor on first non-white
did_ai = true; // delete the indent when ESC hit
ai_col = curwin->w_cursor.col;
} else