Skip to content

Commit e7d8247

Browse files
committed
Fix for the Safari selection workaround
1 parent 035f535 commit e7d8247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ var CodeMirror = (function() {
20152015
te.setSelectionRange(start, end);
20162016
else {
20172017
te.setSelectionRange(start, end - 1);
2018-
window.getSelection().modify("expand", "forward", "character");
2018+
window.getSelection().modify("extend", "forward", "character");
20192019
}
20202020
};
20212021
else

0 commit comments

Comments
 (0)