Skip to content

Commit e809a4e

Browse files
committed
patch 8.1.1630: various small problems
Problem: Various small problems. Solution: Various small improvements.
1 parent 790c18b commit e809a4e

9 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/gui_beval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ gui_mch_create_beval_area(
107107
return NULL;
108108
}
109109

110-
beval = (BalloonEval *)alloc_clear(sizeof(BalloonEval));
110+
beval = ALLOC_CLEAR_ONE(BalloonEval);
111111
if (beval != NULL)
112112
{
113113
#ifdef FEAT_GUI_GTK

src/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ rettv_list_alloc_id(typval_T *rettv, alloc_id_T id UNUSED)
130130

131131

132132
/*
133-
* Set a list as the return value
133+
* Set a list as the return value. Increments the reference count.
134134
*/
135135
void
136136
rettv_list_set(typval_T *rettv, list_T *l)

src/menu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ add_menu_path(
583583
}
584584

585585
/* Not already there, so lets add it */
586-
menu = (vimmenu_T *)alloc_clear(sizeof(vimmenu_T));
586+
menu = ALLOC_CLEAR_ONE(vimmenu_T);
587587
if (menu == NULL)
588588
goto erret;
589589

src/message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ emsg_core(char_u *s)
652652
redir_write(s, -1);
653653
}
654654
#ifdef FEAT_JOB_CHANNEL
655-
ch_log(NULL, "ERROR: %s", (char *)s);
655+
ch_log(NULL, "ERROR silent: %s", (char *)s);
656656
#endif
657657
return TRUE;
658658
}

src/misc2.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,9 +1193,7 @@ free_all_mem(void)
11931193
buf = firstbuf;
11941194
}
11951195

1196-
# ifdef FEAT_ARABIC
11971196
free_cmdline_buf();
1198-
# endif
11991197

12001198
/* Clear registers. */
12011199
clear_registers();

src/os_vms_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define HAVE_DATE_TIME
2525

2626
/* Defined to the size of an int */
27-
#define VIM_SIZEOF_INT 4
27+
#define VIM_SIZEOF_INT 4
2828

2929
/* #undef USEBCOPY */
3030
#define USEMEMMOVE

src/testdir/Make_vms.mms

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Authors: Zoltan Arpadffy, <[email protected]>
55
# Sandor Kopanyi, <[email protected]>
66
#
7-
# Last change: 2016 Nov 04
7+
# Last change: 2019 May 31
88
#
99
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
1010
# Edit the lines in the Configuration section below to select.

src/testdir/test_terminal.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,11 +1187,10 @@ func Test_terminal_dumpdiff_options()
11871187
quit
11881188

11891189
call assert_equal(1, winnr('$'))
1190-
let width = winwidth(0)
11911190
call term_dumpdiff('dumps/Test_popup_command_01.dump', 'dumps/Test_popup_command_02.dump', {'vertical': 0, 'term_rows': 13, 'term_name': 'something else'})
11921191
call assert_equal(2, winnr('$'))
1193-
call assert_equal(width, winwidth(winnr()))
1194-
call assert_equal(13, winheight(winnr()))
1192+
call assert_equal(&columns, winwidth(0))
1193+
call assert_equal(13, winheight(0))
11951194
call assert_equal('something else', bufname('%'))
11961195
quit
11971196

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1630,
780782
/**/
781783
1629,
782784
/**/

0 commit comments

Comments
 (0)