src/nvim/fileio.c
/// Shorten filenames for all buffers.
Shorten filenames for all buffers.
Shorten filenames for all buffers .
void shorten_fnames(int force)
{
  char_u dirname[MAXPATHL];
  os_dirname(dirname, MAXPATHL);
  FOR_ALL_BUFFERS(buf) {
      shorten_buf_fname(buf, dirname, force);
    mf_fullname(buf->b_ml.ml_mfp);
  }
  status_redraw_all();
  redraw_tabline = TRUE;
}
void shorten_fnames ( int force ) { char_u dirname [ MAXPATHL ] ; os_dirname ( dirname , MAXPATHL ) ; FOR_ALL_BUFFERS ( buf ) { shorten_buf_fname ( buf , dirname , force ) ; mf_fullname ( buf -> b_ml . ml_mfp ) ; } status_redraw_all ( ) ; redraw_tabline = TRUE ; }
Shorten filenames for all buffers.
Shorten filenames for all buffers .
// Always make the swap file name a full path, a "nofile" buffer may // also have a swap file.