Patch 8.2.4636 (after 8.2.4633)
Problem:    Not using Visual range.
Solution:   Put the command pointer back to the range.
Files:      src/ex_docmd.c


*** ../vim-8.2.4635/src/ex_docmd.c      2022-03-27 13:36:47.110991835 +0100
--- src/ex_docmd.c      2022-03-27 16:55:55.136902044 +0100
***************
*** 3092,3106 ****
        break;
      }
  
!     if (has_visual_range && eap->cmd > cmd_start)
      {
!       // Move the '<,'> range to after the modifiers and insert a colon.
!       // Since the modifiers have been parsed put the colon on top of the
!       // space: "'<,'>mod cmd" -> "mod:'<,'>cmd
!       // Put eap->cmd after the colon.
!       mch_memmove(cmd_start - 5, cmd_start, eap->cmd - cmd_start);
!       eap->cmd -= 5;
!       mch_memmove(eap->cmd - 1, ":'<,'>", 6);
      }
  
      return OK;
--- 3092,3112 ----
        break;
      }
  
!     if (has_visual_range)
      {
!       if (eap->cmd > cmd_start)
!       {
!           // Move the '<,'> range to after the modifiers and insert a colon.
!           // Since the modifiers have been parsed put the colon on top of the
!           // space: "'<,'>mod cmd" -> "mod:'<,'>cmd
!           // Put eap->cmd after the colon.
!           mch_memmove(cmd_start - 5, cmd_start, eap->cmd - cmd_start);
!           eap->cmd -= 5;
!           mch_memmove(eap->cmd - 1, ":'<,'>", 6);
!       }
!       else
!           // no modifiers, move the pointer back
!           eap->cmd -= 5;
      }
  
      return OK;
*** ../vim-8.2.4635/src/version.c       2022-03-27 16:50:58.925557951 +0100
--- src/version.c       2022-03-27 16:54:49.017049053 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4636,
  /**/

-- 
ARTHUR:        What?
BLACK KNIGHT:  None shall pass.
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
               this bridge.
BLACK KNIGHT:  Then you shall die.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220327155652.2D8EB1C0C1F%40moolenaar.net.

Raspunde prin e-mail lui