Hirohito Higashi wrote:
> Hi Bram and Vimmer,
>
> I improved :qa command behavior.
> (if any buffer was changed and cannot be abandoned.)
> Before patch
> A changed buffer select priority:
> 1. curbuf
> 2. first find in buffer-list.
>
> Behavior:
> 1.
> Output E37 and E162 messages.
> 2.(find in current tabpage)
> Output E37 and E162 messages.
> Go to window that contains the buffer.
> 2.(find in other)
> Output E37 and E162 messages.
> Open the changed buffer in the current window.
>
> After patch
> A changed buffer select priority:
> 1. curbuf
> 2. current tabpage.
> 3. other tabpage.
> 4. first find in buffer-list.
>
> Behavior:
> 1.
> Output E37 and E162 messages.
> 2.
> Output E37 and E162 messages.
> Go to window that contains the buffer.
> 3.
> Output E37 and E162 messages.
> Go to tabpage and window that contains the buffer.
> 4.
> Output E37 and E162 messages.
> Open the changed buffer in the current window.
>
> ---- test case 1 ----
> $ vim -N -u NONE -i NONE --noplugin -p a b c
> :tablast
> iCCC<Esc>
> :tabrewind
> :sp aa
> iAA<Esc>
> :wincmd w
> :qa <--- go to "aa" buffer of first tabpage.
>
> ---- test case 2 ----
> $ vim -N -u NONE -i NONE --noplugin -p a b c
> :tablast
> iCCC<Esc>
> :tabrewind
> :qa <--- go to "c" buffer of last tabpage.
>
>
> Patch is here. Please check.
> https://gist.github.com/1808179
> ( https://raw.github.com/gist/1808179/qa_goto_buf.patch )
Thanks. I'll add it in the todo list. In the mean time, it would be
good if some people can try it out.
--
Proof techniques #2: Proof by Oddity.
SAMPLE: To prove that horses have an infinite number of legs.
(1) Horses have an even number of legs.
(2) They have two legs in back and fore legs in front.
(3) This makes a total of six legs, which certainly is an odd number of
legs for a horse.
(4) But the only number that is both odd and even is infinity.
(5) Therefore, horses must have an infinite number of legs.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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