mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Prevent spell error marker adding newly typed characters
This commit is contained in:
parent
9fa85400b3
commit
2be023c731
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ define [
|
|||
row: options.row,
|
||||
column: options.column + options.word.length
|
||||
})
|
||||
# Prevent range from adding newly typed characters to the end of the word.
|
||||
# This makes it appear as if the spelling error continues to the next word
|
||||
# even after a space
|
||||
range.end.$insertRight = true
|
||||
|
||||
markerId = session.addMarker range, "spelling-highlight", 'text', false
|
||||
|
||||
|
|
Loading…
Reference in a new issue