mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
lint
This commit is contained in:
@@ -4363,9 +4363,9 @@ void ex_help(exarg_T *eap)
|
||||
if (!curwin->w_buffer->b_help
|
||||
|| cmdmod.tab != 0
|
||||
) {
|
||||
if (cmdmod.tab != 0)
|
||||
if (cmdmod.tab != 0) {
|
||||
wp = NULL;
|
||||
else {
|
||||
} else {
|
||||
wp = NULL;
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp2, curtab) {
|
||||
if (wp2->w_buffer != NULL && wp2->w_buffer->b_help) {
|
||||
@@ -4374,13 +4374,11 @@ void ex_help(exarg_T *eap)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (wp != NULL && wp->w_buffer->b_nwindows > 0)
|
||||
if (wp != NULL && wp->w_buffer->b_nwindows > 0) {
|
||||
win_enter(wp, true);
|
||||
else {
|
||||
/*
|
||||
* There is no help window yet.
|
||||
* Try to open the file specified by the "helpfile" option.
|
||||
*/
|
||||
} else {
|
||||
// There is no help window yet.
|
||||
// Try to open the file specified by the "helpfile" option.
|
||||
if ((helpfd = mch_fopen((char *)p_hf, READBIN)) == NULL) {
|
||||
smsg(_("Sorry, help file \"%s\" not found"), p_hf);
|
||||
goto erret;
|
||||
|
Reference in New Issue
Block a user