0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1630: various small problems

Problem:    Various small problems.
Solution:   Various small improvements.
This commit is contained in:
Bram Moolenaar
2019-07-04 17:35:05 +02:00
parent 790c18bfa5
commit e809a4ed30
9 changed files with 10 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ gui_mch_create_beval_area(
return NULL;
}
beval = (BalloonEval *)alloc_clear(sizeof(BalloonEval));
beval = ALLOC_CLEAR_ONE(BalloonEval);
if (beval != NULL)
{
#ifdef FEAT_GUI_GTK

View File

@@ -130,7 +130,7 @@ rettv_list_alloc_id(typval_T *rettv, alloc_id_T id UNUSED)
/*
* Set a list as the return value
* Set a list as the return value. Increments the reference count.
*/
void
rettv_list_set(typval_T *rettv, list_T *l)

View File

@@ -583,7 +583,7 @@ add_menu_path(
}
/* Not already there, so lets add it */
menu = (vimmenu_T *)alloc_clear(sizeof(vimmenu_T));
menu = ALLOC_CLEAR_ONE(vimmenu_T);
if (menu == NULL)
goto erret;

View File

@@ -652,7 +652,7 @@ emsg_core(char_u *s)
redir_write(s, -1);
}
#ifdef FEAT_JOB_CHANNEL
ch_log(NULL, "ERROR: %s", (char *)s);
ch_log(NULL, "ERROR silent: %s", (char *)s);
#endif
return TRUE;
}

View File

@@ -1193,9 +1193,7 @@ free_all_mem(void)
buf = firstbuf;
}
# ifdef FEAT_ARABIC
free_cmdline_buf();
# endif
/* Clear registers. */
clear_registers();

View File

@@ -4,7 +4,7 @@
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
#
# Last change: 2016 Nov 04
# Last change: 2019 May 31
#
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
# Edit the lines in the Configuration section below to select.

View File

@@ -1187,11 +1187,10 @@ func Test_terminal_dumpdiff_options()
quit
call assert_equal(1, winnr('$'))
let width = winwidth(0)
call term_dumpdiff('dumps/Test_popup_command_01.dump', 'dumps/Test_popup_command_02.dump', {'vertical': 0, 'term_rows': 13, 'term_name': 'something else'})
call assert_equal(2, winnr('$'))
call assert_equal(width, winwidth(winnr()))
call assert_equal(13, winheight(winnr()))
call assert_equal(&columns, winwidth(0))
call assert_equal(13, winheight(0))
call assert_equal('something else', bufname('%'))
quit

View File

@@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1630,
/**/
1629,
/**/