comparison src/buffer.c @ 1411:0e6b369b9760 v7.1.126

updated for version 7.1-126
author vimboss
date Sun, 30 Sep 2007 12:02:55 +0000
parents cdd82acd75b4
children b63fe7400eb3
comparison
equal deleted inserted replaced
1410:cdd82acd75b4 1411:0e6b369b9760
4259 */ 4259 */
4260 void 4260 void
4261 do_arg_all(count, forceit, keep_tabs) 4261 do_arg_all(count, forceit, keep_tabs)
4262 int count; 4262 int count;
4263 int forceit; /* hide buffers in current windows */ 4263 int forceit; /* hide buffers in current windows */
4264 int keep_tabs; /* keep curren tabs, for ":tab drop file" */ 4264 int keep_tabs; /* keep current tabs, for ":tab drop file" */
4265 { 4265 {
4266 int i; 4266 int i;
4267 win_T *wp, *wpnext; 4267 win_T *wp, *wpnext;
4268 char_u *opened; /* array of flags for which args are open */ 4268 char_u *opened; /* array of flags for which args are open */
4269 int opened_len; /* lenght of opened[] */ 4269 int opened_len; /* length of opened[] */
4270 int use_firstwin = FALSE; /* use first window for arglist */ 4270 int use_firstwin = FALSE; /* use first window for arglist */
4271 int split_ret = OK; 4271 int split_ret = OK;
4272 int p_ea_save; 4272 int p_ea_save;
4273 alist_T *alist; /* argument list to be used */ 4273 alist_T *alist; /* argument list to be used */
4274 buf_T *buf; 4274 buf_T *buf;
4944 } 4944 }
4945 4945
4946 /* Expand "~/" in the file name at "line + 1" to a full path. 4946 /* Expand "~/" in the file name at "line + 1" to a full path.
4947 * Then try shortening it by comparing with the current directory */ 4947 * Then try shortening it by comparing with the current directory */
4948 expand_env(xline, NameBuff, MAXPATHL); 4948 expand_env(xline, NameBuff, MAXPATHL);
4949 mch_dirname(IObuff, IOSIZE); 4949 sfname = shorten_fname1(NameBuff);
4950 sfname = shorten_fname(NameBuff, IObuff);
4951 if (sfname == NULL)
4952 sfname = NameBuff;
4953 4950
4954 buf = buflist_new(NameBuff, sfname, (linenr_T)0, BLN_LISTED); 4951 buf = buflist_new(NameBuff, sfname, (linenr_T)0, BLN_LISTED);
4955 if (buf != NULL) /* just in case... */ 4952 if (buf != NULL) /* just in case... */
4956 { 4953 {
4957 buf->b_last_cursor.lnum = lnum; 4954 buf->b_last_cursor.lnum = lnum;