We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf595bf commit b2a0f16Copy full SHA for b2a0f16
Jellyfin.Plugin.Streamyfin/Pages/YamlEditor/index.js
@@ -109,9 +109,9 @@ export default function (view, params) {
109
if (idx === -1) return word.startColumn;
110
let start = idx + 1; // first char after colon
111
// skip spaces
112
- while (beforeCursor.charAt(start) === ' ') start++;
+ while (start < beforeCursor.length && beforeCursor.charAt(start) === ' ') start++;
113
// skip optional opening quotes
114
- while (beforeCursor.charAt(start) === '"' || beforeCursor.charAt(start) === "'") start++;
+ while (start < beforeCursor.length && (beforeCursor.charAt(start) === '"' || beforeCursor.charAt(start) === "'")) start++;
115
// Monaco columns are 1-based
116
return start + 1;
117
})();
0 commit comments