Skip to content

Commit

Permalink
fix end of file behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Feb 19, 2024
1 parent 242c685 commit f14159a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class CompletionMode(

if (!event.force) {
val docEvent = event.event ?: return
if (docEvent.offset + docEvent.newLength > text.length) return
if (docEvent.offset + docEvent.newLength > editor.document.text.length) return
if (docEvent.newLength + docEvent.oldLength <= 0) return
maybeState = EditorTextState(
editor,
Expand Down

0 comments on commit f14159a

Please sign in to comment.