fix isFirst offsetdelta

This commit is contained in:
sawka 2023-03-30 21:20:00 -07:00
parent 7ea4fb8db4
commit 8ea8b406d3

View File

@ -290,7 +290,7 @@ class LinesView extends React.Component<{screen : ScreenInterface, width : numbe
let viewInfo = this.getLineViewInfo(newLine);
let isFirst = (lidx.index == 0);
let isLast = (lidx.index == lines.length-1);
let offsetDelta = (isLast ? 10 : (isFirst ? -10 : 0));
let offsetDelta = (isLast ? 10 : (isFirst ? -28 : 0));
if (viewInfo == null) {
screen.setAnchorFields(newLine, 0+offsetDelta, "updateSelectedLine");
}