Mercurial > vim
comparison src/userfunc.c @ 27698:3813036f19cb v8.2.4375
patch 8.2.4375: ctx_imports is not used
Commit: https://github.com/vim/vim/commit/4b1d9639726ebe1630991488a1314db628b6b854
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 13 21:51:08 2022 +0000
patch 8.2.4375: ctx_imports is not used
Problem: ctx_imports is not used.
Solution: Delete ctx_imports. Add missing dependency.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Feb 2022 23:00:04 +0100 |
parents | f60d0d823897 |
children | f1d5822ca0d7 |
comparison
equal
deleted
inserted
replaced
27697:1dbf9d45ac52 | 27698:3813036f19cb |
---|---|
1612 if (STRNCMP(name, "s:", 2) == 0) | 1612 if (STRNCMP(name, "s:", 2) == 0) |
1613 { | 1613 { |
1614 p = name + 2; | 1614 p = name + 2; |
1615 len -= 2; | 1615 len -= 2; |
1616 } | 1616 } |
1617 import = find_imported(p, len, FALSE, NULL); | 1617 import = find_imported(p, len, FALSE); |
1618 | 1618 |
1619 // imported function from another script | 1619 // imported function from another script |
1620 if (import != NULL) | 1620 if (import != NULL) |
1621 { | 1621 { |
1622 name[len] = NUL; | 1622 name[len] = NUL; |
4589 fp = find_func_even_dead(find_name, ffed_flags); | 4589 fp = find_func_even_dead(find_name, ffed_flags); |
4590 if (vim9script) | 4590 if (vim9script) |
4591 { | 4591 { |
4592 char_u *uname = untrans_function_name(name); | 4592 char_u *uname = untrans_function_name(name); |
4593 | 4593 |
4594 import = find_imported(uname == NULL ? name : uname, 0, | 4594 import = find_imported(uname == NULL ? name : uname, 0, FALSE); |
4595 FALSE, NULL); | |
4596 } | 4595 } |
4597 | 4596 |
4598 if (fp != NULL || import != NULL) | 4597 if (fp != NULL || import != NULL) |
4599 { | 4598 { |
4600 int dead = fp != NULL && (fp->uf_flags & FC_DEAD); | 4599 int dead = fp != NULL && (fp->uf_flags & FC_DEAD); |