I think this change makes sense, considering that if a key dismisses a hit-enter prompt, it's only recorded if it's put back into the typeahead to be processes again in Normal mode.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I think this change makes sense, considering that if one dismisses a hit-enter prompt with <CR>, it's not recorded.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Happens with popup taking input like CR/Enter as well. If echomsg trigger hit-enter while popup is active the hidden hit-enter prompt will await input not the popup - making it require double CR/Enter
hit-enter prompt dismissed.—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Hm, I wonder if the following change would make the popup filter case work then:
else if (!stuff_empty() || !typebuf_typed() #ifdef FEAT_PROP_POPUP || popup_no_mapping() #endif ) c = CAR;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
" requires 2x <CR> to trigger, hit-enter owns input nnoremap <buffer> <CR> <Cmd>echomsg 'reached'<CR> call popup_menu(['one'], {}) redraw! echomsg repeat('x', &columns * 2)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@dezza I tried your repro:
0. vim -S repro_dezza.vim
1. see a hit-enter prompt and a popup
2. press <CR>, nothing happens
3. press <CR> again, prompt and popup both disappear
To me, something looks stale cuz between the first and the second <CR> the
screen does not change at all.
I then tried the following:
func Log(m) call writefile([a:m], 'events.txt', 'a') endfunc func Chosen(id, res) call Log('POPUP got CR -> result=' . a:res) endfunc call popup_menu(['one'], #{callback: 'Chosen'})
redraw! echomsg repeat('x', &columns * 2)
0. vim -S repro_events.vim
1. see a hit-enter prompt and a popup
2. press <CR> -> events.txt is created with "POPUP got ..." but the screen does not change
3. press <CR> again -> prompt and popup both disappear
So my conclusion is the first <CR> goes to the popup, and the second one
dismisses the hit-enter prompt. Something is causing the screen to be stale and
nothing happens between the first and second <CR>.
I am not that familiar with this part of the code though, and I would assume this
staleness issue is already known? If not, I'm happy to look into it.
In any case it looks like a separate problem from what this PR fixes.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I just tried now with a FocusGained [Y/n] dialog where there were some errors meanwhile. Same symptom here, it needs 2 presses.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I've opened #21052 for @dezza's report, which I think is a separate issue.
Otherwise I think the patch is self-contained and ready to merge. @chrisbra
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()