From b4ed613595432ece6802d09bfabad18e09aa26f3 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 1 Oct 2020 04:25:54 +0000 Subject: Import nvi 2.2.0-05ed8b9 This snapshot just brings a bunch of fixes in particular a fix for vi -w PR: 241985 Reported by: fernape --- vi/v_sentence.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vi/v_sentence.c') diff --git a/vi/v_sentence.c b/vi/v_sentence.c index 3415fbd18937..4ba9cfc1df33 100644 --- a/vi/v_sentence.c +++ b/vi/v_sentence.c @@ -336,7 +336,7 @@ okret: vp->m_stop.lno = cs.cs_lno; * All commands move to the end of the range. Adjust the start of * the range for motion commands. */ - if (ISMOTION(vp)) + if (ISMOTION(vp)) { if (vp->m_start.cno == 0 && (cs.cs_flags != 0 || vp->m_stop.cno == 0)) { if (db_get(sp, @@ -346,6 +346,7 @@ okret: vp->m_stop.lno = cs.cs_lno; F_SET(vp, VM_LMODE); } else --vp->m_start.cno; + } vp->m_final = vp->m_stop; return (0); } -- cgit v1.2.3