Mercurial > vim
comparison src/ex_getln.c @ 32258:6ababf71c1b1 v9.0.1460
patch 9.0.1460: insufficient testing for getcmdcompltype()
Commit: https://github.com/vim/vim/commit/961b2e54bdbe1c06e4bf8ccf7a7e3deb129b45de
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Apr 17 15:53:24 2023 +0100
patch 9.0.1460: insufficient testing for getcmdcompltype()
Problem: Insufficient testing for getcmdcompltype().
Solution: Add a few more test cases. (closes https://github.com/vim/vim/issues/12268)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Apr 2023 17:00:05 +0200 |
parents | a5b5d8df5763 |
children | bdbaaed04acd |
comparison
equal
deleted
inserted
replaced
32257:e961acb64f50 | 32258:6ababf71c1b1 |
---|---|
4150 | 4150 |
4151 p = get_ccline_ptr(); | 4151 p = get_ccline_ptr(); |
4152 if (p == NULL || p->xpc == NULL) | 4152 if (p == NULL || p->xpc == NULL) |
4153 return NULL; | 4153 return NULL; |
4154 | 4154 |
4155 char_u *cmd_compl; | |
4156 | |
4157 set_expand_context(p->xpc); | 4155 set_expand_context(p->xpc); |
4158 | 4156 if (p->xpc->xp_context == EXPAND_UNSUCCESSFUL) |
4159 cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context); | 4157 return NULL; |
4158 | |
4159 char_u *cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context); | |
4160 if (cmd_compl != NULL) | 4160 if (cmd_compl != NULL) |
4161 return vim_strsave(cmd_compl); | 4161 return vim_strsave(cmd_compl); |
4162 | 4162 |
4163 return NULL; | 4163 return NULL; |
4164 } | 4164 } |