summaryrefslogtreecommitdiffstats
path: root/src/userfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index d8c943b23d..3dfa680972 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -875,7 +875,7 @@ get_function_body(
--end;
while (end > p && VIM_ISWHITE(*end))
--end;
- if (end > p - 2 && end[-1] == '=' && end[0] == '>')
+ if (end > p + 2 && end[-1] == '=' && end[0] == '>')
{
// found trailing "=> {", start of an inline function
if (nesting == MAX_FUNC_NESTING - 1)