On 05/08/12 18:00, h_east wrote:
Hi, Bram

Occured in Vim 7.3.604 and later

reproduce
(1) :let foo=input('', '', 'dir')
(2) Hit escape key. (cancel input())
(3) :echo foo

displayed
     dir

`dir` is 3rd argument value(the type of completion).
It's Not {cancelreturn} value.

Patch attatched. Please check.

Best regards,
--
Hirohito Higashi


Bram: I confirm (in Huge gvim 7.3.621 for GTK2/Gnome2):

Even when a nonempty default value (2nd argument) is supplied, after canceling input by hitting <Esc> the variable is neither left unchanged nor set to the default value, it is set to the completion type.

Best regards,
Tony.
--
God is a comic playing to an audience that's afraid to laugh.

--
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

Raspunde prin e-mail lui