mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Determine autocomplete position before filtering matches
This commit is contained in:
parent
caaa517b8b
commit
34c3bdfe36
@ -87,11 +87,12 @@ class Autocomplete extends View
|
||||
@originalSelectedText = @editor.getSelectedText()
|
||||
@originalSelectionBufferRange = @editor.getSelection().getBufferRange()
|
||||
@allMatches = @findMatchesForCurrentSelection()
|
||||
@filterMatches()
|
||||
|
||||
cursorScreenPosition = @editor.getCursorScreenPosition()
|
||||
{left, top} = @editor.pixelPositionForScreenPosition(cursorScreenPosition)
|
||||
@css {left: left, top: top + @editor.lineHeight}
|
||||
|
||||
@filterMatches()
|
||||
@editor.lines.append(this)
|
||||
@miniEditor.focus()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user