summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2002-01-31 13:28:37 +0000
committersheldonh <sheldonh@FreeBSD.org>2002-01-31 13:28:37 +0000
commitb1c162a5bdd7f60801768c4b6b9c471bd7abb1f9 (patch)
treeba3a4d7d2ffa2f42ccd8dec15d2cb7699026807b /contrib
parentd705353edbe13c13b01a7187baad1b30645f90f8 (diff)
parent6122421847de7afa5fb3c70ddf001fb674e4d9e3 (diff)
downloadFreeBSD-src-b1c162a5bdd7f60801768c4b6b9c471bd7abb1f9.zip
FreeBSD-src-b1c162a5bdd7f60801768c4b6b9c471bd7abb1f9.tar.gz
This commit was generated by cvs2svn to compensate for changes in r90019,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/nvi/vi/vs_smap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/nvi/vi/vs_smap.c b/contrib/nvi/vi/vs_smap.c
index af38057..18d7942 100644
--- a/contrib/nvi/vi/vs_smap.c
+++ b/contrib/nvi/vi/vs_smap.c
@@ -743,7 +743,7 @@ vs_sm_up(sp, rp, count, scmd, smp)
if (!SMAP_CACHE(smp) && vs_line(sp, smp, NULL, NULL))
return (1);
rp->lno = smp->lno;
- rp->cno = smp->c_sboff;
+ rp->cno = smp->c_scoff == 255 ? 0 : smp->c_sboff;
return (0);
}
@@ -958,7 +958,7 @@ vs_sm_down(sp, rp, count, scmd, smp)
if (!SMAP_CACHE(smp) && vs_line(sp, smp, NULL, NULL))
return (1);
rp->lno = smp->lno;
- rp->cno = smp->c_sboff;
+ rp->cno = smp->c_scoff == 255 ? 0 : smp->c_sboff;
return (0);
}
OpenPOWER on IntegriCloud