Skip to content

Commit 8713e66

Browse files
committed
Fix cursor stuck bug.
1 parent 88a10ae commit 8713e66

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.0.1",
3+
"configurations": [
4+
{
5+
"name": "sqlfiddle",
6+
"runtimeExecutable": "dotnet",
7+
"runtimeArgs": ["run", "--no-launch-profile", "--urls", "http://localhost:5050", "--project", "SQLFiddle.Website"],
8+
"port": 5050
9+
}
10+
]
11+
}

demos/SQLFiddle/SQLFiddle.Website/wwwroot/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,20 @@
147147
var session = ({ ModelError: modelSession, CommandError: commandSession })[err.type.case];
148148
var row = Math.max(0, err.startLine - 1);
149149
var col = Math.max(0, err.startColumn - 1);
150-
session.setAnnotations([{ row: row, column: col, text: err.reason }]);
150+
session.setAnnotations([{ row: row, column: col, text: err.reason, type: 'error' }]);
151151
removeMarker();
152152

153153
var range = new AceRange(row, col, Math.max(0, err.endLine - 1), Math.max(0, err.endColumn - 1));
154-
var markerId = session.addMarker(range, 'error-marker');
154+
var markerId = session.addMarker(range, 'error-marker', 'text');
155155
removeMarker = function () {
156156
session.removeMarker(markerId);
157157
};
158158

159159
$output.toggleClass('valid', false);
160160

161161
$output.text(err.message);
162-
modelOutput.setValue('');
163-
commandOutput.setValue('');
162+
modelOutput.setValue('', -1);
163+
commandOutput.setValue('', -1);
164164
},
165165
FiddleValid: function () {
166166
currentValid = true;

0 commit comments

Comments
 (0)