[comp.emacs] MicroEMACS v3.10 beta - #5

davidsen@steinmetz.ge.com (William E. Davidsen Jr) (12/20/88)

As evidence of the "black hole" mail situation between D.L. and I, I
submitted this fix originalls to 3.8e (actually I think the fix was
different, but the problem was the same).

                         Overwrite mode problem

  When in overwrite mode, the is a problem with repeat counts. If I type
	"^U10x"
instead of changing the first ten characters to x's, I change the first
to an x, and then insert the next nine x's before what was the 2nd
character on the line. This is a suggested fix.

1718a1719
> 	int delindex;				/* counter for OVER mode */
1749,1752c1750,1754
< 		if (curwp->w_bufp->b_mode & MDOVER &&
< 		    curwp->w_doto < curwp->w_dotp->l_used &&
< 			(lgetc(curwp->w_dotp, curwp->w_doto) != '\t' ||
< 			 (curwp->w_doto) % tabsize == (tabsize - 1)))
---
> 		if (curwp->w_bufp->b_mode & MDOVER) {
> 		    for (delindex=0; delindex < n; delindex++) {
> 		        if (curwp->w_doto < curwp->w_dotp->l_used &&
> 			    (lgetc(curwp->w_dotp, curwp->w_doto) != '\t' ||
> 			    (curwp->w_doto) % tabsize == (tabsize - 1)))
1753a1756,1757
> 		    }
> 		}

-- 
	bill davidsen		(wedu@ge-crd.arpa)
  {uunet | philabs}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me