Mercurial > vim
comparison src/mbyte.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 | 79e3dcc5aa50 |
children | d89c5b339c2a |
comparison
equal
deleted
inserted
replaced
15542:5baedae7ca7a | 15543:dd725a8ab112 |
---|---|
3743 * characters. */ | 3743 * characters. */ |
3744 line = ml_get_cursor(); | 3744 line = ml_get_cursor(); |
3745 len = utfc_ptr2len(line); | 3745 len = utfc_ptr2len(line); |
3746 if (len == 0) | 3746 if (len == 0) |
3747 { | 3747 { |
3748 MSG("NUL"); | 3748 msg("NUL"); |
3749 return; | 3749 return; |
3750 } | 3750 } |
3751 | 3751 |
3752 clen = 0; | 3752 clen = 0; |
3753 for (i = 0; i < len; ++i) | 3753 for (i = 0; i < len; ++i) |
3768 rlen += (int)STRLEN(IObuff + rlen); | 3768 rlen += (int)STRLEN(IObuff + rlen); |
3769 if (rlen > IOSIZE - 20) | 3769 if (rlen > IOSIZE - 20) |
3770 break; | 3770 break; |
3771 } | 3771 } |
3772 | 3772 |
3773 msg(IObuff); | 3773 msg((char *)IObuff); |
3774 } | 3774 } |
3775 | 3775 |
3776 /* | 3776 /* |
3777 * mb_head_off() function pointer. | 3777 * mb_head_off() function pointer. |
3778 * Return offset from "p" to the first byte of the character it points into. | 3778 * Return offset from "p" to the first byte of the character it points into. |