We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41539a6 commit 3d4e18aCopy full SHA for 3d4e18a
src/commands/showPanel.tsx
@@ -58,7 +58,7 @@ async function handleMessage(
58
_.set(info, `["${activeEditor.uri}"].chapter`, message.chapter ?? 1);
59
// TODO: message.prepend can be undefined in runtime, investigate
60
const nPrependLines = message.prepend
61
- ? message.prepend.split("\n").length
+ ? message.prepend.split("\n").length + 2
62
: 0;
63
_.set(info, `["${activeEditor.uri}"].prepend`, nPrependLines);
64
context.globalState.update("info", info);
0 commit comments