From ca20db131f0c841864fa8b44c1cd6e4d1772df8f Mon Sep 17 00:00:00 2001 From: salexdv Date: Fri, 14 May 2021 09:19:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BA=D0=BB=D0=B0=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=BF=D1=80=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8/=D1=83=D0=B4=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B8=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=20fix=20#83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor.js b/src/editor.js index 999c1ee..6e30d4f 100644 --- a/src/editor.js +++ b/src/editor.js @@ -1355,6 +1355,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit prev_bookmark.range.endLineNumber = line; bookmarks.set(line, prev_bookmark); bookmarks.delete(line - 1); + line++; } @@ -1362,7 +1363,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit let line_check = getLineCount(); - while (line < line_check) { + while (line <= line_check) { let bookmark = bookmarks.get(line_check);