Mercurial > vim
comparison src/userfunc.c @ 25694:ce91372ca07b v8.2.3383
patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis
Commit: https://github.com/vim/vim/commit/9aecf79c45da5593e4d8c0de1b2d212edc4765ce
Author: naohiro ono <obcat@icloud.com>
Date: Sat Aug 28 15:56:06 2021 +0200
patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis
Problem: Vim9: completion for :disassemble adds parenthesis.
Solution: Don't add parenthesis. (Naohiro Ono, closes https://github.com/vim/vim/issues/8802)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Aug 2021 16:00:04 +0200 |
parents | c204815f3058 |
children | d923be9d752d |
comparison
equal
deleted
inserted
replaced
25693:55bee0ef54cf | 25694:ce91372ca07b |
---|---|
4623 | 4623 |
4624 if (STRLEN(fp->uf_name) + 4 >= IOSIZE) | 4624 if (STRLEN(fp->uf_name) + 4 >= IOSIZE) |
4625 return fp->uf_name; // prevents overflow | 4625 return fp->uf_name; // prevents overflow |
4626 | 4626 |
4627 cat_func_name(IObuff, fp); | 4627 cat_func_name(IObuff, fp); |
4628 if (xp->xp_context != EXPAND_USER_FUNC) | 4628 if (xp->xp_context != EXPAND_USER_FUNC |
4629 && xp->xp_context != EXPAND_DISASSEMBLE) | |
4629 { | 4630 { |
4630 STRCAT(IObuff, "("); | 4631 STRCAT(IObuff, "("); |
4631 if (!has_varargs(fp) && fp->uf_args.ga_len == 0) | 4632 if (!has_varargs(fp) && fp->uf_args.ga_len == 0) |
4632 STRCAT(IObuff, ")"); | 4633 STRCAT(IObuff, ")"); |
4633 } | 4634 } |