Skip to content

Commit f39d9e9

Browse files
committed
patch 9.0.1479: small source file problems; outdated list of distrib. files
Problem: Small source file problems; outdated list of distributed files. Solution: Small updates to source files and list of distributed files.
1 parent 71badf9 commit f39d9e9

15 files changed

+25
-33
lines changed

Filelist

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ SRC_ALL = \
1818
.appveyor.yml \
1919
.codecov.yml \
2020
ci/appveyor.bat \
21-
ci/build-snd-dummy.sh \
2221
ci/config.mk*.sed \
2322
ci/if_ver*.vim \
24-
ci/load-snd-dummy.sh \
2523
ci/setup-xvfb.sh \
2624
src/Make_all.mak \
2725
src/README.md \
@@ -710,6 +708,7 @@ RT_ALL = \
710708
runtime/ftoff.vim \
711709
runtime/gvimrc_example.vim \
712710
runtime/import/dist/vimhelp.vim \
711+
runtime/import/dist/vimhighlight.vim \
713712
runtime/macros/README.txt \
714713
runtime/macros/editexisting.vim \
715714
runtime/macros/hanoi/click.me \

ci/load-snd-dummy.sh

-8
This file was deleted.

src/beval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ bexpr_eval(
261261
save_curbuf = curbuf;
262262
curbuf = wp->w_buffer;
263263
use_sandbox = was_set_insecurely((char_u *)"balloonexpr",
264-
*curbuf->b_p_bexpr == NUL ? 0 : OPT_LOCAL);
264+
*curbuf->b_p_bexpr == NUL ? 0 : OPT_LOCAL);
265265
curbuf = save_curbuf;
266266
if (use_sandbox)
267267
++sandbox;

src/cmdexpand.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1484,8 +1484,8 @@ addstar(
14841484
* EXPAND_FILES After command with EX_XFILE set, or after setting
14851485
* with P_EXPAND set. eg :e ^I, :w>>^I
14861486
* EXPAND_DIRECTORIES In some cases this is used instead of the latter
1487-
* when we know only directories are of interest. eg
1488-
* :set dir=^I
1487+
* when we know only directories are of interest.
1488+
* E.g. :set dir=^I and :cd ^I
14891489
* EXPAND_SHELLCMD After ":!cmd", ":r !cmd" or ":w !cmd".
14901490
* EXPAND_SETTINGS Complete variable names. eg :set d^I
14911491
* EXPAND_BOOL_SETTINGS Complete boolean variables only, eg :set no^I

src/ex_cmds.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -5107,7 +5107,8 @@ ex_global(exarg_T *eap)
51075107
*cmd++ = NUL; // replace it with a NUL
51085108
}
51095109

5110-
if (search_regcomp(pat, &used_pat, RE_BOTH, which_pat, SEARCH_HIS, &regmatch) == FAIL)
5110+
if (search_regcomp(pat, &used_pat, RE_BOTH, which_pat, SEARCH_HIS,
5111+
&regmatch) == FAIL)
51115112
{
51125113
emsg(_(e_invalid_command));
51135114
return;

src/getchar.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ get_buffcont(
133133
for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next)
134134
count += (long_u)STRLEN(bp->b_str);
135135

136-
if ((count || dozero) && (p = alloc(count + 1)) != NULL)
136+
if ((count > 0 || dozero) && (p = alloc(count + 1)) != NULL)
137137
{
138138
p2 = p;
139139
for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next)
140140
for (str = bp->b_str; *str; )
141141
*p2++ = *str++;
142142
*p2 = NUL;
143143
}
144-
return (p);
144+
return p;
145145
}
146146

147147
/*

src/gui_beval.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ pointer_event(BalloonEval *beval, int x, int y, unsigned state)
404404
}
405405
else
406406
{
407-
beval->timerID = g_timeout_add((guint)p_bdlay,
408-
&timeout_cb, beval);
407+
beval->timerID = g_timeout_add((guint)p_bdlay, &timeout_cb, beval);
409408
}
410409
}
411410
}

src/insexpand.c

+4-6
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ ins_compl_update_sequence_numbers(void)
30013001

30023002
if (compl_dir_forward())
30033003
{
3004-
// search backwards for the first valid (!= -1) number.
3004+
// Search backwards for the first valid (!= -1) number.
30053005
// This should normally succeed already at the first loop
30063006
// cycle, so it's fast!
30073007
for (match = compl_curr_match->cp_prev; match != NULL
@@ -3012,16 +3012,15 @@ ins_compl_update_sequence_numbers(void)
30123012
break;
30133013
}
30143014
if (match != NULL)
3015-
// go up and assign all numbers which are not assigned
3016-
// yet
3015+
// go up and assign all numbers which are not assigned yet
30173016
for (match = match->cp_next;
30183017
match != NULL && match->cp_number == -1;
30193018
match = match->cp_next)
30203019
match->cp_number = ++number;
30213020
}
30223021
else // BACKWARD
30233022
{
3024-
// search forwards (upwards) for the first valid (!= -1)
3023+
// Search forwards (upwards) for the first valid (!= -1)
30253024
// number. This should normally succeed already at the
30263025
// first loop cycle, so it's fast!
30273026
for (match = compl_curr_match->cp_next; match != NULL
@@ -3032,8 +3031,7 @@ ins_compl_update_sequence_numbers(void)
30323031
break;
30333032
}
30343033
if (match != NULL)
3035-
// go down and assign all numbers which are not
3036-
// assigned yet
3034+
// go down and assign all numbers which are not assigned yet
30373035
for (match = match->cp_prev; match
30383036
&& match->cp_number == -1;
30393037
match = match->cp_prev)

src/job.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
383383
val = tv_get_string(item);
384384
if (STRCMP(val, "open") != 0 && STRCMP(val, "close") != 0)
385385
{
386-
semsg(_(e_invalid_value_for_argument_str_str), "term_finish", val);
386+
semsg(_(e_invalid_value_for_argument_str_str),
387+
"term_finish", val);
387388
return FAIL;
388389
}
389390
opt->jo_set2 |= JO2_TERM_FINISH;

src/menu.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2318,8 +2318,8 @@ gui_destroy_tearoffs_recurse(vimmenu_T *menu)
23182318
/*
23192319
* Execute "menu". Use by ":emenu" and the window toolbar.
23202320
* "eap" is NULL for the window toolbar.
2321-
* "mode_idx" specifies a MENU_INDEX_ value, use -1 to depend on the current
2322-
* state.
2321+
* "mode_idx" specifies a MENU_INDEX_ value, use MENU_INDEX_INVALID to depend
2322+
* on the current state.
23232323
*/
23242324
void
23252325
execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
@@ -2329,7 +2329,7 @@ execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
23292329
if (idx < 0)
23302330
{
23312331
// Use the Insert mode entry when returning to Insert mode.
2332-
if (restart_edit && !current_sctx.sc_sid)
2332+
if (restart_edit && current_sctx.sc_sid == 0)
23332333
{
23342334
idx = MENU_INDEX_INSERT;
23352335
}
@@ -2513,7 +2513,7 @@ ex_emenu(exarg_T *eap)
25132513
{
25142514
vimmenu_T *menu;
25152515
char_u *arg = eap->arg;
2516-
int mode_idx = -1;
2516+
int mode_idx = MENU_INDEX_INVALID;
25172517

25182518
if (arg[0] && VIM_ISWHITE(arg[1]))
25192519
{

src/terminal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3310,7 +3310,7 @@ handle_resize(int rows, int cols, void *user)
33103310
}
33113311

33123312
/*
3313-
* If the number of lines that are stored goes over 'termscrollback' then
3313+
* If the number of lines that are stored goes over 'termwinscroll' then
33143314
* delete the first 10%.
33153315
* "gap" points to tl_scrollback or tl_scrollback_postponed.
33163316
* "update_buffer" is TRUE when the buffer should be updated.

src/testdir/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C L
1818
# The output goes into a file "valgrind.testN"
1919
# Vim should be compiled with EXITFREE to avoid false warnings.
2020
# This will make testing about 10 times as slow.
21-
# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=35 --log-file=valgrind.$*
21+
# VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=45 --log-file=valgrind.$*
2222

2323
# To execute one test, e.g. in gdb, use something like this:
2424
# run -f -u unix.vim --gui-dialog-file guidialog -U NONE --noplugin --not-a-term -S runtest.vim test_name.vim

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1479,
698700
/**/
699701
1478,
700702
/**/

src/vim9compile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ compile_assignment(
26462646
lhs_type = &t_number;
26472647
if (*p != '=' && need_type(rhs_type, lhs_type, FALSE,
26482648
-1, 0, cctx, FALSE, FALSE) == FAIL)
2649-
goto theend;
2649+
goto theend;
26502650
}
26512651
}
26522652
else if (cmdidx == CMD_final)

src/window.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4633,7 +4633,7 @@ tabpage_index(tabpage_T *ftp)
46334633
leave_tabpage(
46344634
buf_T *new_curbuf UNUSED, // what is going to be the new curbuf,
46354635
// NULL if unknown
4636-
int trigger_leave_autocmds UNUSED)
4636+
int trigger_leave_autocmds)
46374637
{
46384638
tabpage_T *tp = curtab;
46394639

0 commit comments

Comments
 (0)