We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7f068 commit 2b90157Copy full SHA for 2b90157
src/App.tsx
@@ -323,8 +323,22 @@ function App() {
323
onGotoEnd,
324
]);
325
326
+ // When a new log is loaded go to the last instruction
327
useEffect(() => {
- onGotoEnd();
328
+ const visualIdx = logLineIdxToVisualIdx.get(verifierLogState.lastInsIdx);
329
+ if (visualIdx === undefined) {
330
+ return;
331
+ }
332
+ const clineId =
333
+ verifierLogState.cSourceMap.logLineToCLine.get(
334
+ verifierLogState.lastInsIdx,
335
+ ) || "";
336
+ setSelectedAndScroll(
337
338
+ "",
339
+ visualIdx,
340
+ cLineIdToVisualIdx.get(clineId) || 0,
341
+ );
342
}, [verifierLogState]);
343
344
const loadInputText = useCallback(
0 commit comments