| Subject: | Patch to fix column #s in mg. |
|---|---|
| From: | Mayukh Bose <mayukh_bose@xxxxxxxxxxx> |
| Date: | Thu, 31 Jul 2008 04:57:14 UTC |
| Newsgroups: | fa.openbsd.tech |
The mg editor currently prints the column # off by one on the status line (for
instance, it shows C0 instead of C1 when the cursor is on the first column).
The following patch fixes that behavior.
Cheers,
Mayukh
Index: random.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/random.c,v
retrieving revision 1.25
diff -u -r1.25 random.c
--- random.c 11 Jun 2008 23:18:33 -0000 1.25
+++ random.c 31 Jul 2008 04:46:25 -0000
@@ -78,7 +78,7 @@
char tmp[5];
/* determine column */
- col = 0;
+ col = 1;
for (i = 0; i < curwp->w_doto; ++i) {
c = lgetc(curwp->w_dotp, i);
_________________________________________________________________
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenge
r2_072008
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: ath diff for testing: please test on _old_ ar5212 ath devices, STeve Andre' |
|---|---|
| Next by Date: | Re: libfreetype linkage with libz. Correct behavior?, Edd Barrett |
| Previous by Thread: | dhclient-scipt diff, Vadim Zhukov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |