diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-18 01:52:48 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-19 09:36:17 -0300 |
commit | 63cc8b6934e74da2fd13aa5d9f2254c257a45b1c (patch) | |
tree | 0af45b07e1d92d19529b69172431606def237102 /src/screen.c | |
parent | 204d3dfafcc5b285d112e023dd5e5b6f1e861146 (diff) | |
download | rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.gz rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.bz2 rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.zip |
Remove `lalloc_clear`
Use `xcalloc` instead. Change some local variables
to avoid casting.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index bfa51973b7..fde1fb7856 100644 --- a/src/screen.c +++ b/src/screen.c @@ -6265,8 +6265,7 @@ retry: new_ScreenLinesUC = (u8char_T *)lalloc((long_u)( (Rows + 1) * Columns * sizeof(u8char_T)), FALSE); for (i = 0; i < p_mco; ++i) - new_ScreenLinesC[i] = (u8char_T *)lalloc_clear((long_u)( - (Rows + 1) * Columns * sizeof(u8char_T)), FALSE); + new_ScreenLinesC[i] = xcalloc((Rows + 1) * Columns, sizeof(u8char_T)); } if (enc_dbcs == DBCS_JPNU) new_ScreenLines2 = (schar_T *)lalloc((long_u)( |