Hi Bram,

2016-3-15(Tue) 22:31:01 UTC+9 Bram Moolenaar:
> Shougo wrote:
> 
> 
> 
> > It adds F flag in shortmess option.
> 
> > It is "Don't give the file editing message" flag.
> 
> > Because, it is useless if you use statusline feature.
> 
> > You can view, comment on, or merge this pull request online at:
> 
> > 
> 
> >   https://github.com/vim/vim/pull/686
> 
> > 
> 
> > -- Commit Summary --
> 
> > 
> 
> >   * Add "Don't give the file editing message" flag in shortmess option.
> 
> > 
> 
> > -- File Changes --
> 
> > 
> 
> >     M runtime/doc/options.txt (1)
> 
> >     M src/buffer.c (6)
> 
> >     M src/ex_cmds.c (6)
> 
> >     M src/option.h (3)
> 
> 
> 
> Thanks, I'll include it.

--------
src/buffer.c
@@ -139,14 +139,20 @@ open_buffer(
  #endif
         )
      {
 +        int old_msg_silent = msg_silent;
 +
  #ifdef FEAT_NETBEANS_INTG
        int oldFire = netbeansFireChanges;
  
        netbeansFireChanges = 0;
  #endif
 +        if (shortmess(SHM_FILEINFO))
 +            msg_silent = 1;
        retval = readfile(curbuf->b_ffname, curbuf->b_fname,
                  (linenr_T)0, (linenr_T)0, (linenr_T)MAXLNUM, eap,
                  flags | READ_NEW);
 +        if (shortmess(SHM_FILEINFO))
 +            msg_silent = old_msg_silent;
  #ifdef FEAT_NETBEANS_INTG
        netbeansFireChanges = oldFire;
  #endif
--------

Once because the `shortmess(SHM_FILEINFO)` of the results are likely to change 
in autocmd in the readfile(), It should set to the variable.


int has_shm_fileinfo = shortmess(SHM_FILEINFO);

if (has_shm_fileinfo)
    msg_silent = 1;
retval = readfile(.......);
if (has_shm_fileinfo)
    msg_silent = old_msg_silent;

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

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

Raspunde prin e-mail lui