commit | 112f318551e342f19b6af18d1661f65138b41ba8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jun 01 13:18:53 2012 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jun 01 13:18:53 2012 +0200 |
tree | 8559ebab29d7304f53986886d04051a0e55039bb | |
parent | ae084bb97c5233ce9a319e42f3c886e99e87f8f7 [diff] [blame] |
updated for version 7.3.532 Problem: Compiler warning from Clang. Solution: Use a different way to point inside a string. (Dominique Pelle)
diff --git a/src/syntax.c b/src/syntax.c index b5bffc3..b2b6102 100644 --- a/src/syntax.c +++ b/src/syntax.c
@@ -9476,7 +9476,7 @@ int cnt; int attr; { - msg_puts_attr((char_u *)("N \bI \b! \b" + cnt / 11), attr); + msg_puts_attr((char_u *)&("N \bI \b! \b"[cnt / 11]), attr); msg_clr_eos(); out_flush(); ui_delay(cnt == 99 ? 40L : (long)cnt * 50L, FALSE);