Hi Dominique and developers,
2018-7-22(Sun) 19:49:19 UTC+9 Dominique Pellé:
> :help inputlist() says:
> inputlist({textlist}) *inputlist()*
> ...snip...
> The user can also select an item by clicking on it with the
> mouse. For the first string 0 is returned. When clicking
> above the first item a negative number is returned. When
> clicking on the prompt one more than the length of {textlist}
> is returned.
> ...snip...
> Example: >
> let color = inputlist(['Select color:', '1. red',
> \ '2. green', '3. blue'])
>
>
> Yet, the mouse is taken into account.
>
> I tried this:
> $ vim --clean -c 'set mouse=a' -c "let color = inputlist(['Select color:',
> '1. red', '2. green', '3. blue'])"
>
>
> I can only select an item with the keyboard but not with the mouse.
>
> It's broken at least in the latest vim-8.1.203 in terminal and the gtk3 GUI.
>
> I see that it works fine in the older /usr/bin/vim (8.0.1453) which comes
> with xubuntu-18.04.
>
> Doing a git bissection, I found that:
>
> vim-8.0.1755 works fine
> vim-8.0.1756 does not work
>
>
> So this patch broke mouse selection in inputlist():
> commit 73658317bacd9a0264dfaa32288de6ea1f236fe5
> Author: Bram Moolenaar <[email protected]>
> Date: Tue Apr 24 17:41:57 2018 +0200
>
> patch 8.0.1756: GUI: after prompting for a number the mouse shape is wrong
>
> Problem: GUI: after prompting for a number the mouse shape is sometimes
> wrong.
> Solution: Call setmouse() after setting "State". (Hirohito Higashi,
> closes #2709)
Thank you for reporting this.
I investigated a little.
Certainly the behavior on the terminal is broken at 8.0.1756.
However, the behavior is not working properly before 8.0.1756 on gvim.
I did `git bisect`. gvim broken at 8.0.0722
commit c9041079a199d753e73d3b242f21cc8db620179a (tag: v8.0.0722)
Author: Bram Moolenaar <[email protected]>
Date: Sun Jul 16 15:48:46 2017 +0200
patch 8.0.0722: screen is messed by timer up at inputlist() prompt
Problem: Screen is messed by timer up at inputlist() prompt.
Solution: Set state to ASKMORE. (closes #1843)
--
Best regards,
Hirohito Higashi (h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.