Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
9bf749bc
Commit
9bf749bc
authored
16 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.2b-023
parent
38084110
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/eval.c
+12
-2
12 additions, 2 deletions
src/eval.c
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
14 additions
and
2 deletions
src/eval.c
+
12
−
2
View file @
9bf749bc
...
...
@@ -1275,7 +1275,8 @@ eval_to_string(arg, nextcmd, dolist)
if (dolist && tv.v_type == VAR_LIST)
{
ga_init2(&ga, (int)sizeof(char), 80);
list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
if (tv.vval.v_list != NULL)
list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
ga_append(&ga, NUL);
retval = (char_u *)ga.ga_data;
}
...
...
@@ -1380,6 +1381,7 @@ restore_vimvar(idx, save_tv)
/*
* Evaluate an expression to a list with suggestions.
* For the "expr:" part of 'spellsuggest'.
* Returns NULL when there is an error.
*/
list_T *
eval_spell_expr(badword, expr)
...
...
@@ -1587,8 +1589,9 @@ call_func_retnr(func, argc, argv, safe)
# endif
/*
* Call vimL function "func" and return the result as a
l
ist
* Call vimL function "func" and return the result as a
L
ist
.
* Uses argv[argc] for the function arguments.
* Returns NULL when there is something wrong.
*/
void *
call_func_retlist(func, argc, argv, safe)
...
...
@@ -5817,6 +5820,8 @@ list_equal(l1, l2, ic)
{
listitem_T *item1, *item2;
if (l1 == NULL || l2 == NULL)
return FALSE;
if (l1 == l2)
return TRUE;
if (list_len(l1) != list_len(l2))
...
...
@@ -5855,6 +5860,8 @@ dict_equal(d1, d2, ic)
dictitem_T *item2;
int todo;
if (d1 == NULL || d2 == NULL)
return FALSE;
if (d1 == d2)
return TRUE;
if (dict_len(d1) != dict_len(d2))
...
...
@@ -6243,6 +6250,9 @@ list_concat(l1, l2, tv)
{
list_T *l;
if (l1 == NULL || l2 == NULL)
return FAIL;
/* make a copy of the first list. */
l = list_copy(l1, FALSE, 0);
if (l == NULL)
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
9bf749bc
...
...
@@ -676,6 +676,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
23
,
/**/
22
,
/**/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment