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:
parent
ddc4f7bf6d
commit
5066cddacc
@ -1818,8 +1818,9 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
// #region non-public functions
|
||||
function getLineNumber(originalLineNumber) {
|
||||
|
||||
if (originalLineNumber < lineNumbersDedocrations.length)
|
||||
return lineNumbersDedocrations[originalLineNumber] + ' ' + originalLineNumber;
|
||||
// Исправлена потеря первой декорации https://github.com/salexdv/bsl_console/issues/296#issuecomment-1303625104
|
||||
if (originalLineNumber <= lineNumbersDedocrations.length)
|
||||
return lineNumbersDedocrations[originalLineNumber - 1] + ' ' + originalLineNumber;
|
||||
|
||||
return originalLineNumber;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user