To: Pablo Ariel Kohan <[email protected]>
In-Reply-To: <[email protected]>
Cc: Vim developers mailing list <[email protected]>
Subject: patch 5.4n.21 (was: [vim5.4n] buglet in :options)
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Pablo Ariel Kohan wrote:

> In the :option buffer, get to the &im option line, and keep pressing
> <CR>.
>
> You'll end up with a new line containing :echo, every two keypresses.

Patch 5.4n.21
Problem:    In the option-window, hitting <CR> on the ":set im" line caused an
           extra ":echo" to be inserted. (Pablo Ariel Kohan)
Solution:   Use <C-\><C-N> to make sure the ":echo" is done in Normal mode.
Files:      runtime/optwin.vim


*** ../vim-5.4n/runtime/optwin.vim      Thu Jul  8 18:57:12 1999
--- runtime/optwin.vim  Thu Jul  8 18:45:39 1999
***************
*** 835,841 ****
 fun! OW_enter()
   let cpo_save = &cpo
   let &cpo = ""
!   noremap <CR> :call OW_CR()<CR>:echo<CR>
   inoremap <CR> <Esc>:call OW_CR()<CR>:echo<CR>
   noremap <Space> :call OW_Space()<CR>:echo<CR>
   inoremap <Space> <Esc>:call OW_Space()<CR>:echo<CR>
--- 835,841 ----
 fun! OW_enter()
   let cpo_save = &cpo
   let &cpo = ""
!   noremap <CR> :call OW_CR()<CR><C-\><C-N>:echo<CR>
   inoremap <CR> <Esc>:call OW_CR()<CR>:echo<CR>
   noremap <Space> :call OW_Space()<CR>:echo<CR>
   inoremap <Space> <Esc>:call OW_Space()<CR>:echo<CR>

--
OLD WOMAN: King of the WHO?
ARTHUR:    The Britons.
OLD WOMAN: Who are the Britons?
                "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /