fix: fix mention popup not showing after a line break
This commit is contained in:
parent
a01e851070
commit
2e248d710d
|
@ -57,7 +57,7 @@ Item {
|
|||
|
||||
let cursorAtEnd = this.cursorPosition === filter.length;
|
||||
let hasAtBeforeCursor = filter.charAt(this.cursorPosition - 1) === "@"
|
||||
let hasWhiteSpaceBeforeAt = filter.charAt(this.cursorPosition - 2) === " "
|
||||
let hasWhiteSpaceBeforeAt = filter.charAt(this.cursorPosition - 2) === " " || filter.charAt(this.cursorPosition - 2) === "\n"
|
||||
let hasWhiteSpaceAfterAt = filter.charAt(this.cursorPosition) === " "
|
||||
let hasWhiteSpaceBeforeCursor = filter.charAt(this.cursorPosition - 1) === " "
|
||||
|
||||
|
|
Loading…
Reference in New Issue