Lines Matching refs:nChars
667 * Adjust index to account for insertion (nChars > 0)
668 * or deletion (nChars < 0) at specified index.
670 static int AdjustIndex(int i0, int index, int nChars)
673 i0 += nChars;
686 static void AdjustIndices(Entry *entryPtr, int index, int nChars)
689 int g = nChars > 0; /* left gravity adjustment */
691 e->insertPos = AdjustIndex(e->insertPos, index, nChars);
692 e->selectFirst = AdjustIndex(e->selectFirst, index, nChars);
693 e->selectLast = AdjustIndex(e->selectLast, index+g, nChars);
694 e->xscroll.first= AdjustIndex(e->xscroll.first, index+g, nChars);