From 5976f8ff00efcb3e155a89346e44f2ad43d2405a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 27 Dec 2018 23:44:44 +0100 Subject: 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) --- runtime/doc/eval.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 85b9e4419..927912fd8 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -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| -- cgit v1.2.1