1
0
forked from aniani/vim

patch 8.2.0967: unnecessary type casts for vim_strnsave()

Problem:    Unnecessary type casts for vim_strnsave().
Solution:   Remove the type casts.
This commit is contained in:
Bram Moolenaar
2020-06-12 22:59:11 +02:00
parent 722e505d1a
commit 71ccd03ee8
31 changed files with 66 additions and 64 deletions

View File

@@ -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);