1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

remove code that i cannot get to work

This commit is contained in:
Mikael Finstad 2023-04-07 16:56:15 +09:00
parent 9d3ddb4207
commit c96fffda86

View File

@ -94,11 +94,6 @@ const OutSegTemplateEditor = memo(({ outSegTemplate, setOutSegTemplate, generate
const newValue = `${text.slice(0, startPos)}${`\${${variable}}${text.slice(endPos)}`}`;
setText(newValue);
// Move the cursor to after the inserted variable
const newPos = startPos + variable.length + 2;
input.selectionStart = newPos;
input.selectionEnd = newPos;
}, [text]);
return (