comparison src/quickfix.c @ 2296:eb7be7b075a6 vim73

Support :browse for commands that use an error file argument. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Sun, 11 Jul 2010 16:58:51 +0200
parents c17a42da3920
children 68e394361ca3
comparison
equal deleted inserted replaced
2295:b9bc9c5df131 2296:eb7be7b075a6
2949 2949
2950 if (eap->cmdidx == CMD_lfile || eap->cmdidx == CMD_lgetfile 2950 if (eap->cmdidx == CMD_lfile || eap->cmdidx == CMD_lgetfile
2951 || eap->cmdidx == CMD_laddfile) 2951 || eap->cmdidx == CMD_laddfile)
2952 wp = curwin; 2952 wp = curwin;
2953 2953
2954 #ifdef FEAT_BROWSE
2955 if (cmdmod.browse)
2956 {
2957 char_u *browse_file = do_browse(0, (char_u *)_("Error file"), eap->arg,
2958 NULL, NULL, BROWSE_FILTER_ALL_FILES, NULL);
2959 if (browse_file == NULL)
2960 return;
2961 set_string_option_direct((char_u *)"ef", -1, browse_file, OPT_FREE, 0);
2962 vim_free(browse_file);
2963 }
2964 else
2965 #endif
2954 if (*eap->arg != NUL) 2966 if (*eap->arg != NUL)
2955 set_string_option_direct((char_u *)"ef", -1, eap->arg, OPT_FREE, 0); 2967 set_string_option_direct((char_u *)"ef", -1, eap->arg, OPT_FREE, 0);
2956 2968
2957 /* 2969 /*
2958 * This function is used by the :cfile, :cgetfile and :caddfile 2970 * This function is used by the :cfile, :cgetfile and :caddfile