runtime(hlyank): update the hlyank package

Commit: 
https://github.com/vim/vim/commit/e14aa3c035f93686ee73e64fec1fb4f648b0f800
Author: Hirohito Higashi <h.east....@gmail.com>
Date:   Sat Mar 22 15:58:59 2025 +0100

    runtime(hlyank): update the hlyank package
    
    closes: https://github.com/vim/vim/issues/16944
    
    Signed-off-by: Hirohito Higashi <h.east....@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt
index 4b7bc9ffc..56714dbd8 100644
--- a/runtime/doc/usr_05.txt
+++ b/runtime/doc/usr_05.txt
@@ -1,4 +1,4 @@
-*usr_05.txt*   For Vim version 9.1.  Last change: 2025 Mar 18
+*usr_05.txt*   For Vim version 9.1.  Last change: 2025 Mar 22
 
                     VIM USER MANUAL - by Bram Moolenaar
 
@@ -470,8 +470,8 @@ Load the plugin with this command: >
        packadd hlyank
 <
 This package briefly highlights the affected region of the last |yank|
-command. See |52.6| for a simplified implementation using the |getregionpos()|
-function.
+command.  See |52.6| for a simplified implementation using the
+|getregionpos()| function.
 
 The plugin understands the following configuration variables (the settings
 show the default values).
@@ -481,7 +481,9 @@ To specify a different highlighting group, use: >
 <
 To use a different highlighting duration, use: >
        :let g:hlyank_duration = 300
-<
+The unit is milliseconds, and the upper limit is 3000 ms.  If you set a value
+higher than this, the highlighting duration will be 3000 ms.
+
 To highlight in visual mode, use: >
        :let g:hlyank_invisual = v:true
 
diff --git a/runtime/pack/dist/opt/hlyank/plugin/hlyank.vim 
b/runtime/pack/dist/opt/hlyank/plugin/hlyank.vim
index 079e38a1b..4b568fae2 100644
--- a/runtime/pack/dist/opt/hlyank/plugin/hlyank.vim
+++ b/runtime/pack/dist/opt/hlyank/plugin/hlyank.vim
@@ -1,12 +1,12 @@
 vim9script
 
 # Highlight Yank plugin
-# Last Change: 2025 Mar 17
+# Last Change: 2025 Mar 22
 
 def HighlightedYank()
 
   var hlgroup = get(g:, "hlyank_hlgroup", "IncSearch")
-  var duration = get(g:, "hlyank_duration", 300)
+  var duration = min([get(g:, "hlyank_duration", 300), 3000])
   var in_visual = get(g:, "hlyank_invisual", true)
 
   if v:event.operator ==? 'y'
@@ -14,8 +14,8 @@ def HighlightedYank()
       visualmode(1)
       return
     endif
-    # if clipboard has autoselect (default on linux) exiting from Visual with 
ESC
-    # generates bogus event and this highlights previous yank
+    # if clipboard has autoselect (default on linux) exiting from Visual with
+    # ESC generates bogus event and this highlights previous yank
     if &clipboard =~ 'autoselect' && v:event.regname == "*" && v:event.visual
       return
     endif
@@ -36,3 +36,4 @@ augroup hlyank
   autocmd!
   autocmd TextYankPost * HighlightedYank()
 augroup END
+# vim:sts=2:sw=2:et:

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1tw0KV-008qbp-RF%40256bit.org.

Raspunde prin e-mail lui