summaryrefslogtreecommitdiff
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-30 20:52:27 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-30 20:52:27 +0100
commitc667da5185ce5dce914d2006d62da2be0cedb384 (patch)
treecd06b08e9fb7d701653850cd33524d3f1f5acaaf /src/change.c
parent71136db1bfbc67c2e55f8070cdf0a241c643e45b (diff)
downloadvim-git-c667da5185ce5dce914d2006d62da2be0cedb384.tar.gz
patch 8.1.2368: using old C style commentsv8.1.2368
Problem: Using old C style comments. Solution: Use // comments where appropriate.
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/change.c b/src/change.c
index b4349c675..d0462dbe1 100644
--- a/src/change.c
+++ b/src/change.c
@@ -878,7 +878,7 @@ save_file_ff(buf_T *buf)
buf->b_start_eol = buf->b_p_eol;
buf->b_start_bomb = buf->b_p_bomb;
- /* Only use free/alloc when necessary, they take time. */
+ // Only use free/alloc when necessary, they take time.
if (buf->b_start_fenc == NULL
|| STRCMP(buf->b_start_fenc, buf->b_p_fenc) != 0)
{
@@ -899,7 +899,7 @@ save_file_ff(buf_T *buf)
int
file_ff_differs(buf_T *buf, int ignore_empty)
{
- /* In a buffer that was never loaded the options are not valid. */
+ // In a buffer that was never loaded the options are not valid.
if (buf->b_flags & BF_NEVERLOADED)
return FALSE;
if (ignore_empty
@@ -1371,7 +1371,7 @@ open_line(
// make a copy of the current line so we can mess with it
saved_line = vim_strsave(ml_get_curline());
- if (saved_line == NULL) /* out of memory! */
+ if (saved_line == NULL) // out of memory!
return FALSE;
if (State & VREPLACE_FLAG)
@@ -1646,7 +1646,7 @@ open_line(
}
// Isolate the strings of the middle and end leader.
- while (*p && p[-1] != ':') /* find end of middle flags */
+ while (*p && p[-1] != ':') // find end of middle flags
{
if (*p == COM_BLANK)
require_blank = TRUE;
@@ -2008,7 +2008,7 @@ open_line(
// When in REPLACE mode, put the deleted blanks on the replace stack,
// preceded by a NUL, so they can be put back when a BS is entered.
if (REPLACE_NORMAL(State))
- replace_push(NUL); /* end of extra blanks */
+ replace_push(NUL); // end of extra blanks
if (curbuf->b_p_ai || (flags & OPENLINE_DELSPACES))
{
while ((*p_extra == ' ' || *p_extra == '\t')
@@ -2090,7 +2090,7 @@ open_line(
{
// In case we NL to a new line, BS to the previous one, and NL
// again, we don't want to save the new line for undo twice.
- (void)u_save_cursor(); /* errors are ignored! */
+ (void)u_save_cursor(); // errors are ignored!
vr_lines_changed++;
}
ml_replace(curwin->w_cursor.lnum, p_extra, TRUE);