Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions autoload/scope/popup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export class FilterMenu
[128, 80, 83],
[128, 80, 69],
]
var ignore_input_utf8_always = [
# these sequences seem to be generated by desktops that switch-from
# or switch-to the workspace on which the vim instance is running
[128, 70, 66],
[128, 70, 65],
]
var ctrl_r_active = false

this.idp = popup_create([$'{options.promptchar} '],
Expand Down Expand Up @@ -229,6 +235,8 @@ export class FilterMenu
if ln == getcurpos(id)[1]
win_execute(id, "normal! G")
endif
elseif ignore_input_utf8_always->index(str2list(key)) != -1
# do nothing at all with this input type
elseif ignore_input->index(key) == -1 &&
# ignoring double clicks, which are 6 char long: `<80><fc> <80><fd>.`
strchars(key) != 6 &&
Expand Down