Giving buffer new name in different directory does not change
to new directory, when 'acd' is set. This does not sound right,
taking into account that switching buffers to and back makes
current directory right.

To reproduce:
% vim -u NONE ~/xxx
:set acd
:he acd       " to have 2nd buffer
Ctrl-W<down> " back to ~/xxx
:file /tmp/1
:pwd            " wrong current dir, we expect /tmp
Ctrl-W<up><Ctrl-W>down " now pwd becomes right
" same happens with :saveas instead of :file
:saveas /var/tmp/2
:pwd            " wrong current dir, we expect /tmp
Ctrl-W<up><Ctrl-W>down " now pwd becomes right

Bug or feature ?

Yakov

Reply via email to