summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-08-27 18:35:45 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-27 18:35:45 +0200
commitd4e4ecbb3793cd45b645471966c1ac703be52f4a (patch)
tree21dc9d7421f7016bdeb0d3f5875e36251795d38c /src/cmdexpand.c
parent74e1dada4199b2d9e68ccaafdb7895c85b4b08f1 (diff)
patch 9.0.1795: Indentation issuesv9.0.1795
Problem: Indentation issues Solution: Fix code indentation issues. closes: #12906 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 6ffef0c3e7..e5b96fbe9c 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -4022,7 +4022,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
{
xpc.xp_pattern = pat;
xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern);
- xpc.xp_line = pat;
+ xpc.xp_line = pat;
xpc.xp_context = cmdcomplete_str_to_type(type);
if (xpc.xp_context == EXPAND_NOTHING)
@@ -4033,26 +4033,26 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
if (xpc.xp_context == EXPAND_USER_DEFINED)
{
- // Must be "custom,funcname" pattern
- if (STRNCMP(type, "custom,", 7) != 0)
- {
- semsg(_(e_invalid_argument_str), type);
- return;
- }
-
- xpc.xp_arg = type + 7;
+ // Must be "custom,funcname" pattern
+ if (STRNCMP(type, "custom,", 7) != 0)
+ {
+ semsg(_(e_invalid_argument_str), type);
+ return;
+ }
+
+ xpc.xp_arg = type + 7;
}
if (xpc.xp_context == EXPAND_USER_LIST)
{
- // Must be "customlist,funcname" pattern
- if (STRNCMP(type, "customlist,", 11) != 0)
- {
- semsg(_(e_invalid_argument_str), type);
- return;
- }
-
- xpc.xp_arg = type + 11;
+ // Must be "customlist,funcname" pattern
+ if (STRNCMP(type, "customlist,", 11) != 0)
+ {
+ semsg(_(e_invalid_argument_str), type);
+ return;
+ }
+
+ xpc.xp_arg = type + 11;
}
# if defined(FEAT_MENU)