On Mi, 17 Apr 2019, [email protected] wrote:
> 1)$ vim -u NONE -U NONE -N -i NONE -p a b
> 2)now you can see ""b" [New File]" in vim command line - but you are actually
> in file "a" (as you can see by :f or in upper tab)
> 3) try to switch to "b" by 'gt' - previous message stays in command line...
>
> IMHO it does not seem like logic behavior - you are in "a" file, but Vim
> reports you 'b [new file]'? Either it should be 'a [New file]' or nothing at
> all, as it was before. And when I switch to other tab, I would expect
> clearing of command line.
>
> If you want more info, please tell me - this change can really confuse users.
That is indeed confusing. However I don't think we should revert to
clear the screen on switching buffers.
How about the following patch:
diff --git a/src/main.c b/src/main.c
index 5edcbdf8f..8e32c7e2a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2832,6 +2832,9 @@ edit_buffers(
# ifdef HAS_SWAP_EXISTS_ACTION
swap_exists_did_quit = FALSE;
# endif
+ // don't draw fileinfo message if advancing to next tab
+ if (parmp->window_layout == WIN_TABS && advance && !msg_silent)
+ ++msg_silent;
(void)do_ecmd(0, arg_idx < GARGCOUNT
? alist_name(&GARGLIST[arg_idx]) : NULL,
NULL, NULL, ECMD_LASTL, ECMD_HIDE, curwin);
@@ -2860,9 +2863,15 @@ edit_buffers(
break;
}
}
+ if (msg_silent)
+ --msg_silent; // reset from above
if (parmp->window_layout == WIN_TABS)
+ {
goto_tabpage(1);
+ if (!shortmess(SHM_FILEINFO))
+ fileinfo(FALSE, TRUE, FALSE);
+ }
--autocmd_no_enter;
/* make the first window the current window */
Best,
Christian
--
Was Du heute kannst besorgen, das kannst Du Dir auch morgen borgen.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.