mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0648: custom operators can't act upon a forced motion
Problem: Custom operators can't act upon a forced motion. (Christian Wellenbrock) Solution: Add the forced motion to the mode() result. (Christian Brabandt, closes #3490)
This commit is contained in:
@@ -6324,6 +6324,10 @@ mode([expr]) Return a string that indicates the current mode.
|
||||
|
||||
n Normal, Terminal-Normal
|
||||
no Operator-pending
|
||||
nov Operator-pending (forced characterwise |o_v|)
|
||||
noV Operator-pending (forced linewise |o_V|)
|
||||
noCTRL-V Operator-pending (forced blockwise |o_CTRL-V|);
|
||||
CTRL-V is one character
|
||||
niI Normal using |i_CTRL-O| in |Insert-mode|
|
||||
niR Normal using |i_CTRL-O| in |Replace-mode|
|
||||
niV Normal using |i_CTRL-O| in |Virtual-Replace-mode|
|
||||
|
Reference in New Issue
Block a user