Mercurial > vim
diff src/terminal.c @ 20830:9064044fd4f6 v8.2.0967
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:59:11 2020 +0200
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 23:00:04 +0200 |
parents | c81f61e3b508 |
children | d0265fdadec9 |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -3011,7 +3011,7 @@ handle_settermprop( { case VTERM_PROP_TITLE: strval = vim_strnsave((char_u *)value->string.str, - (int)value->string.len); + value->string.len); if (strval == NULL) break; vim_free(term->tl_title); @@ -3073,7 +3073,7 @@ handle_settermprop( case VTERM_PROP_CURSORCOLOR: strval = vim_strnsave((char_u *)value->string.str, - (int)value->string.len); + value->string.len); if (strval == NULL) break; cursor_color_copy(&term->tl_cursor_color, strval);