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 )

Regards,
--
Hirohito Higashi

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