1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-24 08:33:29 +02:00

Update editor.js

Исправлена потеря первой декорации https://github.com/salexdv/bsl_console/issues/296#issuecomment-1303625104
This commit is contained in:
tormozit 2022-11-04 17:44:47 +03:00
parent ddc4f7bf6d
commit 5066cddacc

View File

@ -1818,8 +1818,9 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
// #region non-public functions // #region non-public functions
function getLineNumber(originalLineNumber) { function getLineNumber(originalLineNumber) {
if (originalLineNumber < lineNumbersDedocrations.length) // Исправлена потеря первой декорации https://github.com/salexdv/bsl_console/issues/296#issuecomment-1303625104
return lineNumbersDedocrations[originalLineNumber] + ' ' + originalLineNumber; if (originalLineNumber <= lineNumbersDedocrations.length)
return lineNumbersDedocrations[originalLineNumber - 1] + ' ' + originalLineNumber;
return originalLineNumber; return originalLineNumber;