mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Re-add support for the :browse command modifier
This commit is contained in:
@@ -176,6 +176,7 @@ typedef struct {
|
|||||||
int lockmarks; /* TRUE when ":lockmarks" was used */
|
int lockmarks; /* TRUE when ":lockmarks" was used */
|
||||||
int keeppatterns; /* TRUE when ":keeppatterns" was used */
|
int keeppatterns; /* TRUE when ":keeppatterns" was used */
|
||||||
bool noswapfile; /* true when ":noswapfile" was used */
|
bool noswapfile; /* true when ":noswapfile" was used */
|
||||||
|
bool browse; ///< TRUE to invoke file dialog
|
||||||
char_u *save_ei; /* saved value of 'eventignore' */
|
char_u *save_ei; /* saved value of 'eventignore' */
|
||||||
} cmdmod_T;
|
} cmdmod_T;
|
||||||
|
|
||||||
|
@@ -1313,8 +1313,9 @@ static char_u * do_one_cmd(char_u **cmdlinep,
|
|||||||
case 'b': if (checkforcmd(&ea.cmd, "belowright", 3)) {
|
case 'b': if (checkforcmd(&ea.cmd, "belowright", 3)) {
|
||||||
cmdmod.split |= WSP_BELOW;
|
cmdmod.split |= WSP_BELOW;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (checkforcmd(&ea.cmd, "browse", 3)) {
|
if (checkforcmd(&ea.cmd, "browse", 3)) {
|
||||||
|
cmdmod.browse = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!checkforcmd(&ea.cmd, "botright", 2))
|
if (!checkforcmd(&ea.cmd, "botright", 2))
|
||||||
|
Reference in New Issue
Block a user