vim-patch:8.1.0874: using old style comments in new file

Problem:    Using old style comments in new file.
Solution:   Convert to // comments in new file. (Yegappan Lakshmanan)
9c46efd7dc
This commit is contained in:
Jan Edmund Lazo
2021-03-29 01:23:17 -04:00
parent 4564f2c54f
commit 9d28875d50
3 changed files with 333 additions and 311 deletions

View File

@@ -7269,7 +7269,6 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
char_u *p; char_u *p;
char_u *line; char_u *line;
int icase; int icase;
int i;
if (keytyped == NUL) { if (keytyped == NUL) {
// Can happen with CTRL-Y and CTRL-E on a short line. // Can happen with CTRL-Y and CTRL-E on a short line.
@@ -7354,8 +7353,9 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
&& p[curwin->w_cursor.col - 1] == ':' && p[curwin->w_cursor.col - 1] == ':'
&& p[curwin->w_cursor.col - 2] == ':') { && p[curwin->w_cursor.col - 2] == ':') {
p[curwin->w_cursor.col - 1] = ' '; p[curwin->w_cursor.col - 1] = ' ';
i = (cin_iscase(p, FALSE) || cin_isscopedecl(p) const bool i = cin_iscase(p, false)
|| cin_islabel()); || cin_isscopedecl(p)
|| cin_islabel();
p = get_cursor_line_ptr(); p = get_cursor_line_ptr();
p[curwin->w_cursor.col - 1] = ':'; p[curwin->w_cursor.col - 1] = ':';
if (i) { if (i) {

View File

@@ -429,11 +429,9 @@ int get_number_indent(linenr_T lnum)
return (int)col; return (int)col;
} }
/* // Return appropriate space number for breakindent, taking influencing
* Return appropriate space number for breakindent, taking influencing // parameters into account. Window must be specified, since it is not
* parameters into account. Window must be specified, since it is not // necessarily always the current one.
* necessarily always the current one.
*/
int get_breakindent_win(win_T *wp, const char_u *line) int get_breakindent_win(win_T *wp, const char_u *line)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {

File diff suppressed because it is too large Load Diff