* tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
current line.
This commit is contained in:
parent
98427f3550
commit
00b90ae2d1
@ -1,3 +1,8 @@
|
|||||||
|
2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
|
* tuiSourceWin.c (tuiSetIsExecPointAt): Redraw the previous and
|
||||||
|
current line.
|
||||||
|
|
||||||
2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
|
2002-08-31 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
* tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
|
* tuiSource.c (tuiSetSourceContent): Remove old breakpoint code.
|
||||||
|
@ -375,28 +375,34 @@ tuiHorizontalSourceScroll (TuiWinInfoPtr winInfo,
|
|||||||
} /* tuiHorizontalSourceScroll */
|
} /* tuiHorizontalSourceScroll */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/* Set or clear the hasBreak flag in the line whose line is lineNo. */
|
||||||
** tuiSetHasExecPointAt().
|
|
||||||
** Set or clear the hasBreak flag in the line whose line is lineNo.
|
|
||||||
*/
|
|
||||||
void
|
void
|
||||||
tuiSetIsExecPointAt (TuiLineOrAddress l, TuiWinInfoPtr winInfo)
|
tuiSetIsExecPointAt (TuiLineOrAddress l, TuiWinInfoPtr winInfo)
|
||||||
{
|
{
|
||||||
|
int changed = 0;
|
||||||
int i;
|
int i;
|
||||||
TuiWinContent content = (TuiWinContent) winInfo->generic.content;
|
TuiWinContent content = (TuiWinContent) winInfo->generic.content;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i < winInfo->generic.contentSize)
|
while (i < winInfo->generic.contentSize)
|
||||||
{
|
{
|
||||||
|
int newState;
|
||||||
|
|
||||||
if (content[i]->whichElement.source.lineOrAddr.addr == l.addr)
|
if (content[i]->whichElement.source.lineOrAddr.addr == l.addr)
|
||||||
content[i]->whichElement.source.isExecPoint = TRUE;
|
newState = TRUE;
|
||||||
else
|
else
|
||||||
content[i]->whichElement.source.isExecPoint = FALSE;
|
newState = FALSE;
|
||||||
|
if (newState != content[i]->whichElement.source.isExecPoint)
|
||||||
|
{
|
||||||
|
changed++;
|
||||||
|
content[i]->whichElement.source.isExecPoint = newState;
|
||||||
|
tui_show_source_line (winInfo, i + 1);
|
||||||
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
if (changed)
|
||||||
return;
|
tuiRefreshWin (&winInfo->generic);
|
||||||
} /* tuiSetIsExecPointAt */
|
}
|
||||||
|
|
||||||
/* Update the execution windows to show the active breakpoints.
|
/* Update the execution windows to show the active breakpoints.
|
||||||
This is called whenever a breakpoint is inserted, removed or
|
This is called whenever a breakpoint is inserted, removed or
|
||||||
|
Loading…
Reference in New Issue
Block a user