comparison src/window.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 98c35d312987
children 62b3805506b3
comparison
equal deleted inserted replaced
15542:5baedae7ca7a 15543:dd725a8ab112
308 break; 308 break;
309 309
310 /* move window to new tab page */ 310 /* move window to new tab page */
311 case 'T': 311 case 'T':
312 if (one_window()) 312 if (one_window())
313 MSG(_(m_onlyone)); 313 msg(_(m_onlyone));
314 else 314 else
315 { 315 {
316 tabpage_T *oldtab = curtab; 316 tabpage_T *oldtab = curtab;
317 tabpage_T *newtab; 317 tabpage_T *newtab;
318 318
3377 int r; 3377 int r;
3378 3378
3379 if (one_window()) 3379 if (one_window())
3380 { 3380 {
3381 if (message && !autocmd_busy) 3381 if (message && !autocmd_busy)
3382 MSG(_(m_onlyone)); 3382 msg(_(m_onlyone));
3383 return; 3383 return;
3384 } 3384 }
3385 3385
3386 /* Be very careful here: autocommands may change the window layout. */ 3386 /* Be very careful here: autocommands may change the window layout. */
3387 for (wp = firstwin; win_valid(wp); wp = nextwp) 3387 for (wp = firstwin; win_valid(wp); wp = nextwp)