mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.1.2368: using old C style comments
Problem: Using old C style comments. Solution: Use // comments where appropriate.
This commit is contained in:
17
src/beval.c
17
src/beval.c
@@ -239,13 +239,13 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
|
||||
#endif
|
||||
static int recursive = FALSE;
|
||||
|
||||
/* Don't do anything when 'ballooneval' is off, messages scrolled the
|
||||
* windows up or we have no beval area. */
|
||||
// Don't do anything when 'ballooneval' is off, messages scrolled the
|
||||
// windows up or we have no beval area.
|
||||
if (!can_use_beval() || beval == NULL)
|
||||
return;
|
||||
|
||||
/* Don't do this recursively. Happens when the expression evaluation
|
||||
* takes a long time and invokes something that checks for CTRL-C typed. */
|
||||
// Don't do this recursively. Happens when the expression evaluation
|
||||
// takes a long time and invokes something that checks for CTRL-C typed.
|
||||
if (recursive)
|
||||
return;
|
||||
recursive = TRUE;
|
||||
@@ -257,7 +257,7 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
|
||||
: wp->w_buffer->b_p_bexpr;
|
||||
if (*bexpr != NUL)
|
||||
{
|
||||
/* Convert window pointer to number. */
|
||||
// Convert window pointer to number.
|
||||
for (cw = firstwin; cw != wp; cw = cw->w_next)
|
||||
++winnr;
|
||||
|
||||
@@ -285,9 +285,9 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
|
||||
vim_free(result);
|
||||
result = eval_to_string(bexpr, NULL, TRUE);
|
||||
|
||||
/* Remove one trailing newline, it is added when the result was a
|
||||
* list and it's hardly ever useful. If the user really wants a
|
||||
* trailing newline he can add two and one remains. */
|
||||
// Remove one trailing newline, it is added when the result was a
|
||||
// list and it's hardly ever useful. If the user really wants a
|
||||
// trailing newline he can add two and one remains.
|
||||
if (result != NULL)
|
||||
{
|
||||
len = STRLEN(result);
|
||||
@@ -322,4 +322,3 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user