Mercurial > vim
comparison src/netbeans.c @ 15543:dd725a8ab112 v8.1.0779
patch 8.1.0779: argument for message functions is inconsistent
commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 19 17:43:09 2019 +0100
patch 8.1.0779: argument for message functions is inconsistent
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Jan 2019 17:45:07 +0100 |
parents | 41fbbcea0f1b |
children | 6f1c7e9a6393 |
comparison
equal
deleted
inserted
replaced
15542:5baedae7ca7a | 15543:dd725a8ab112 |
---|---|
3435 msg_add_lines(c, (long)lnum, nchars); | 3435 msg_add_lines(c, (long)lnum, nchars); |
3436 | 3436 |
3437 /* Now display it */ | 3437 /* Now display it */ |
3438 VIM_CLEAR(keep_msg); | 3438 VIM_CLEAR(keep_msg); |
3439 msg_scrolled_ign = TRUE; | 3439 msg_scrolled_ign = TRUE; |
3440 msg_trunc_attr(IObuff, FALSE, 0); | 3440 msg_trunc_attr((char *)IObuff, FALSE, 0); |
3441 msg_scrolled_ign = FALSE; | 3441 msg_scrolled_ign = FALSE; |
3442 } | 3442 } |
3443 | 3443 |
3444 | 3444 |
3445 /* | 3445 /* |
3462 msg_add_lines(c, buf->bufp->b_ml.ml_line_count, | 3462 msg_add_lines(c, buf->bufp->b_ml.ml_line_count, |
3463 buf->bufp->b_orig_size); | 3463 buf->bufp->b_orig_size); |
3464 | 3464 |
3465 VIM_CLEAR(keep_msg); | 3465 VIM_CLEAR(keep_msg); |
3466 msg_scrolled_ign = TRUE; | 3466 msg_scrolled_ign = TRUE; |
3467 p = msg_trunc_attr(IObuff, FALSE, 0); | 3467 p = (char_u *)msg_trunc_attr((char *)IObuff, FALSE, 0); |
3468 if ((msg_scrolled && !need_wait_return) || !buf->initDone) | 3468 if ((msg_scrolled && !need_wait_return) || !buf->initDone) |
3469 { | 3469 { |
3470 /* Need to repeat the message after redrawing when: | 3470 /* Need to repeat the message after redrawing when: |
3471 * - When reading from stdin (the screen will be cleared next). | 3471 * - When reading from stdin (the screen will be cleared next). |
3472 * - When restart_edit is set (otherwise there will be a delay | 3472 * - When restart_edit is set (otherwise there will be a delay |