1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

*** empty log message ***

This commit is contained in:
nwanua
2000-11-01 00:51:37 +00:00
parent 497e34b6b8
commit a20c49b80f

View File

@@ -1840,11 +1840,13 @@ reqBlockSize(unsigned short requested)
static void static void
clearText(Text *tPtr) clearText(Text *tPtr, int destroy)
{ {
tPtr->vpos = tPtr->hpos = 0; tPtr->vpos = tPtr->hpos = 0;
tPtr->docHeight = tPtr->docWidth = 0; tPtr->docHeight = tPtr->docWidth = 0;
updateScrollers(tPtr);
if(!destroy)
updateScrollers(tPtr);
if (!tPtr->firstTextBlock) if (!tPtr->firstTextBlock)
return; return;
@@ -1974,7 +1976,6 @@ insertTextInteractively(Text *tPtr, char *text, int len)
tb = tPtr->currentTextBlock; tb = tPtr->currentTextBlock;
if (!tb || tb->graphic) { if (!tb || tb->graphic) {
text[len] = 0;
WMAppendTextStream(tPtr, text); WMAppendTextStream(tPtr, text);
tPtr->tpos = tPtr->currentTextBlock->used; tPtr->tpos = tPtr->currentTextBlock->used;
layOutDocument(tPtr); layOutDocument(tPtr);
@@ -2532,7 +2533,7 @@ handleEvents(XEvent *event, void *data)
case DestroyNotify: case DestroyNotify:
clearText(tPtr); clearText(tPtr, True);
if(tPtr->hS) if(tPtr->hS)
WMDestroyWidget(tPtr->hS); WMDestroyWidget(tPtr->hS);
if(tPtr->vS) if(tPtr->vS)
@@ -2994,7 +2995,7 @@ WMPrependTextStream(WMText *tPtr, char *text)
if(tPtr->flags.ownsSelection) if(tPtr->flags.ownsSelection)
releaseSelection(tPtr); releaseSelection(tPtr);
else else
clearText(tPtr); clearText(tPtr, False);
return; return;
} }
@@ -3017,7 +3018,7 @@ WMAppendTextStream(WMText *tPtr, char *text)
if(tPtr->flags.ownsSelection) if(tPtr->flags.ownsSelection)
releaseSelection(tPtr); releaseSelection(tPtr);
else else
clearText(tPtr); clearText(tPtr, False);
return; return;
} }