]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(openPlugin): fix unclosed parenthesis in GetWordUnderCursor()
authorMorton Fox <github@qslw.com>
Sat, 1 Feb 2025 09:28:52 +0000 (10:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 1 Feb 2025 09:28:52 +0000 (10:28 +0100)
commit7c930eb61a4204b4bc40a7137f5ace591e87a765
tree86f19718a112122c313863903d6b13922515d77c
parent195fcc90d0e93ea01915a6cdc1f0687f7b0246a9
runtime(openPlugin): fix unclosed parenthesis in GetWordUnderCursor()

Problem:

Saw the following error when invoking gx mapping with cursor on a URL:

    Error detected while compiling function <SNR>95_GetWordUnderCursor:
    line    7:
    E1123: Missing comma before argument: return expand(user_var)
    E116: Invalid arguments for function dist#vim9#Open

Solution:

The line before "return expand(...)" has two open parentheses but only
one close parenthesis. Add another close parenthesis.

closes: #16553

Signed-off-by: Morton Fox <github@qslw.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/plugin/openPlugin.vim