Mercurial > vim
comparison src/gui.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 | 3ef31ce9d9f9 |
children | 1ec942f1b648 |
comparison
equal
deleted
inserted
replaced
15542:5baedae7ca7a | 15543:dd725a8ab112 |
---|---|
2748 // FIXME: how can the first character ever be zero? | 2748 // FIXME: how can the first character ever be zero? |
2749 // Make this IEMSGN when it no longer breaks Travis CI. | 2749 // Make this IEMSGN when it no longer breaks Travis CI. |
2750 vim_snprintf((char *)IObuff, IOSIZE, | 2750 vim_snprintf((char *)IObuff, IOSIZE, |
2751 "INTERNAL ERROR: NUL in ScreenLines in row %ld", | 2751 "INTERNAL ERROR: NUL in ScreenLines in row %ld", |
2752 (long)gui.row); | 2752 (long)gui.row); |
2753 msg(IObuff); | 2753 msg((char *)IObuff); |
2754 } | 2754 } |
2755 } | 2755 } |
2756 # ifdef FEAT_GUI_GTK | 2756 # ifdef FEAT_GUI_GTK |
2757 if (col2 + 1 < Columns && ScreenLines[off + col2 + 1] == 0) | 2757 if (col2 + 1 < Columns && ScreenLines[off + col2 + 1] == 0) |
2758 ++col2; | 2758 ++col2; |
5321 FALSE, FALSE); | 5321 FALSE, FALSE); |
5322 ins_str(repl_text); | 5322 ins_str(repl_text); |
5323 } | 5323 } |
5324 } | 5324 } |
5325 else | 5325 else |
5326 MSG(_("No match at cursor, finding next")); | 5326 msg(_("No match at cursor, finding next")); |
5327 vim_regfree(regmatch.regprog); | 5327 vim_regfree(regmatch.regprog); |
5328 } | 5328 } |
5329 } | 5329 } |
5330 | 5330 |
5331 if (type == FRD_REPLACEALL) | 5331 if (type == FRD_REPLACEALL) |