rem: WMScrollText(WMText *tPtr, int amount) { Bool scroll=False; if(amount == 0 || !tPtr) return; if(!tPtr->view->flags.realized) return;
add: WMScrollText(WMText * tPtr, int amount) { Bool scroll = False;
context: WMScrollText(WMText *tPtr, int amount){    Bool scroll=False;    if(amount == 0 || !tPtr) return;    if(!tPtr->view->flags.realized) return;    if(amount < 0) {        if(tPtr->vpos > 0) {            if(tPtr->vpos > amount) tPtr->vpos += amount;            else tPtr->vpos=0;            scroll=True;        } } else {        int limit = tPtr->docHeight - tPtr->visibleH;        if(tPtr->vpos < limit) {            if(tPtr->vpos < limit-amount) tPtr->vpos += amount;            else tPtr->vpos = limit;            scroll = True;        } }    if(scroll && tPtr->vpos != tPtr->prevVpos) {        updateScrollers(tPtr);        drawDocumentPartsOnPixmap(tPtr, False);        paintText(tPtr);    }    tPtr->prevVpos = tPtr->vpos;    return scroll;}