runtime(comment): fix syntax error

Commit: 
https://github.com/vim/vim/commit/0fb25515cc81b5301649962b25129799334e91c0
Author: Konfekt <konf...@users.noreply.github.com>
Date:   Mon Sep 30 19:30:34 2024 +0200

    runtime(comment): fix syntax error
    
    fixes: https://github.com/vim/vim/issues/15767
    closes: https://github.com/vim/vim/issues/15770
    
    Signed-off-by: Konfekt <konf...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/pack/dist/opt/comment/autoload/comment.vim 
b/runtime/pack/dist/opt/comment/autoload/comment.vim
index ed3534b84..6617136e6 100644
--- a/runtime/pack/dist/opt/comment/autoload/comment.vim
+++ b/runtime/pack/dist/opt/comment/autoload/comment.vim
@@ -1,7 +1,7 @@
 vim9script
 
 # Maintainer: Maxim Kim <haba...@gmail.com>
-# Last Update: 2024-09-24
+# Last Update: 2024-09-30
 #
 # Toggle comments
 # Usage:
@@ -24,7 +24,7 @@ export def Toggle(...args: list<string>): string
     var first_col = indent(lnum1)
     var start_col = getpos("'[")[2]
     if len(cms_l) == 1 && lnum1 == lnum2 && first_col < start_col
-        var line_start = getline(lnum1)[0 : max(0, start_col - 2)]
+        var line_start = getline(lnum1)[0 : max([0, start_col - 2])]
         var line_end = getline(lnum1)[start_col - 1 : -1]
         line_end = line_end =~# $'^\s*{cms_l[0]}' ?
                     \ substitute(line_end, $'^\s*\zs{cms_l[0]}', '', '') :
diff --git a/runtime/pack/dist/opt/comment/doc/comment.txt 
b/runtime/pack/dist/opt/comment/doc/comment.txt
index 4d791e56c..af1251a07 100644
--- a/runtime/pack/dist/opt/comment/doc/comment.txt
+++ b/runtime/pack/dist/opt/comment/doc/comment.txt
@@ -1,4 +1,4 @@
-*comment.txt*   For Vim version 9.1.  Last change:  2024 Sep 29
+*comment.txt*   For Vim version 9.1.  Last change:  2024 Sep 30
 
 
                  VIM REFERENCE MANUAL
@@ -27,7 +27,7 @@ To comment the rest of the line by  `gC`  whenever the 
filetype plugin
 supports it (that is, whenever the comment marker precedes the code) and fall
 back to `gcc` otherwise, add the following mapping to your vimrc: >
 
-       nnoremap <silent> <expr> gC comment.Toggle() .. '$'
+       nnoremap <silent> <expr> gC comment#Toggle() .. '$'
 <
 Note: using `gC` may not always result in valid comment markers depending on
 the language used.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1svKSQ-002Tcq-JF%40256bit.org.

Raspunde prin e-mail lui