From: Morton Fox Date: Sat, 1 Feb 2025 09:28:52 +0000 (+0100) Subject: runtime(openPlugin): fix unclosed parenthesis in GetWordUnderCursor() X-Git-Tag: v9.1.1062~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c930eb61a4204b4bc40a7137f5ace591e87a765;p=thirdparty%2Fvim.git 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 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 Signed-off-by: Christian Brabandt --- diff --git a/runtime/plugin/openPlugin.vim b/runtime/plugin/openPlugin.vim index c231dc448c..51592f09be 100644 --- a/runtime/plugin/openPlugin.vim +++ b/runtime/plugin/openPlugin.vim @@ -3,7 +3,7 @@ vim9script # Vim runtime support library # # Maintainer: The Vim Project -# Last Change: 2025 Jan 24 +# Last Change: 2025 Feb 01 import autoload 'dist/vim9.vim' @@ -18,7 +18,7 @@ if !no_gx return url endif - const user_var = get(g:, 'gx_word', get(g:, 'netrw_gx', '') + const user_var = get(g:, 'gx_word', get(g:, 'netrw_gx', '')) return expand(user_var) enddef