We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aee0f2 commit f7149f5Copy full SHA for f7149f5
1 file changed
public/js/index.js
@@ -408,7 +408,8 @@ window.lastInfo = {
408
cursor: {
409
line: null,
410
ch: null
411
- }
+ },
412
+ selections: null
413
},
414
view: {
415
scroll: {
@@ -3394,6 +3395,7 @@ function saveInfo() {
3394
3395
break;
3396
}
3397
lastInfo.edit.cursor = editor.getCursor();
3398
+ lastInfo.edit.selections = editor.listSelections();
3399
lastInfo.needRestore = true;
3400
3401
@@ -3403,6 +3405,7 @@ function restoreInfo() {
3403
3405
var line = lastInfo.edit.cursor.line;
3404
3406
var ch = lastInfo.edit.cursor.ch;
3407
editor.setCursor(line, ch);
3408
+ editor.setSelections(lastInfo.edit.selections);
3409
switch (currentMode) {
3410
case modeType.edit:
3411
if (scrollbarStyle == 'native') {
0 commit comments