mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0184
This commit is contained in:
parent
b71eaaeaa8
commit
b1b715d1fb
@ -736,7 +736,7 @@ notags:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
- if exist $(OUTDIR)/nul $(DEL_TREE) $(OUTDIR)
|
- if exist $(OUTDIR)/nul $(DEL_TREE) $(OUTDIR)
|
||||||
- if exist auto/nul $(DEL_TREE) auto
|
- if exist auto/pathdef.c del auto/pathdef.c
|
||||||
- if exist *.obj del *.obj
|
- if exist *.obj del *.obj
|
||||||
- if exist $(VIM).exe del $(VIM).exe
|
- if exist $(VIM).exe del $(VIM).exe
|
||||||
- if exist $(VIM).ilk del $(VIM).ilk
|
- if exist $(VIM).ilk del $(VIM).ilk
|
||||||
|
@ -9729,7 +9729,10 @@ put_view(fd, wp, add_edit, flagp)
|
|||||||
*/
|
*/
|
||||||
if ((*flagp & SSOP_FOLDS)
|
if ((*flagp & SSOP_FOLDS)
|
||||||
&& wp->w_buffer->b_ffname != NULL
|
&& wp->w_buffer->b_ffname != NULL
|
||||||
&& (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help))
|
# ifdef FEAT_QUICKFIX
|
||||||
|
&& (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help)
|
||||||
|
# endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
if (put_folds(fd, wp) == FAIL)
|
if (put_folds(fd, wp) == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@ -2882,9 +2882,11 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
|||||||
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEAPPENDCMD,
|
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEAPPENDCMD,
|
||||||
sfname, sfname, FALSE, curbuf, eap)))
|
sfname, sfname, FALSE, curbuf, eap)))
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_QUICKFIX
|
||||||
if (overwriting && bt_nofile(curbuf))
|
if (overwriting && bt_nofile(curbuf))
|
||||||
nofile_err = TRUE;
|
nofile_err = TRUE;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
apply_autocmds_exarg(EVENT_FILEAPPENDPRE,
|
apply_autocmds_exarg(EVENT_FILEAPPENDPRE,
|
||||||
sfname, sfname, FALSE, curbuf, eap);
|
sfname, sfname, FALSE, curbuf, eap);
|
||||||
}
|
}
|
||||||
@ -2899,9 +2901,11 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
|||||||
if (!(did_cmd = apply_autocmds_exarg(EVENT_BUFWRITECMD,
|
if (!(did_cmd = apply_autocmds_exarg(EVENT_BUFWRITECMD,
|
||||||
sfname, sfname, FALSE, curbuf, eap)))
|
sfname, sfname, FALSE, curbuf, eap)))
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_QUICKFIX
|
||||||
if (overwriting && bt_nofile(curbuf))
|
if (overwriting && bt_nofile(curbuf))
|
||||||
nofile_err = TRUE;
|
nofile_err = TRUE;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
apply_autocmds_exarg(EVENT_BUFWRITEPRE,
|
apply_autocmds_exarg(EVENT_BUFWRITEPRE,
|
||||||
sfname, sfname, FALSE, curbuf, eap);
|
sfname, sfname, FALSE, curbuf, eap);
|
||||||
}
|
}
|
||||||
@ -2911,9 +2915,11 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
|||||||
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEWRITECMD,
|
if (!(did_cmd = apply_autocmds_exarg(EVENT_FILEWRITECMD,
|
||||||
sfname, sfname, FALSE, curbuf, eap)))
|
sfname, sfname, FALSE, curbuf, eap)))
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_QUICKFIX
|
||||||
if (overwriting && bt_nofile(curbuf))
|
if (overwriting && bt_nofile(curbuf))
|
||||||
nofile_err = TRUE;
|
nofile_err = TRUE;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
apply_autocmds_exarg(EVENT_FILEWRITEPRE,
|
apply_autocmds_exarg(EVENT_FILEWRITEPRE,
|
||||||
sfname, sfname, FALSE, curbuf, eap);
|
sfname, sfname, FALSE, curbuf, eap);
|
||||||
}
|
}
|
||||||
|
@ -764,6 +764,22 @@ clear_rect(RECT *rcp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
gui_mch_get_screen_dimensions(int *screen_w, int *screen_h)
|
||||||
|
{
|
||||||
|
|
||||||
|
*screen_w = GetSystemMetrics(SM_CXFULLSCREEN)
|
||||||
|
- GetSystemMetrics(SM_CXFRAME) * 2;
|
||||||
|
/* FIXME: dirty trick: Because the gui_get_base_height() doesn't include
|
||||||
|
* the menubar for MSwin, we subtract it from the screen height, so that
|
||||||
|
* the window size can be made to fit on the screen. */
|
||||||
|
*screen_h = GetSystemMetrics(SM_CYFULLSCREEN)
|
||||||
|
- GetSystemMetrics(SM_CYFRAME) * 2
|
||||||
|
#ifdef FEAT_MENU
|
||||||
|
- gui_mswin_get_menu_height(FALSE)
|
||||||
|
#endif
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(FEAT_MENU) || defined(PROTO)
|
#if defined(FEAT_MENU) || defined(PROTO)
|
||||||
|
@ -2477,23 +2477,6 @@ gui_mswin_get_valid_dimensions(
|
|||||||
((h - base_height) / gui.char_height) * gui.char_height;
|
((h - base_height) / gui.char_height) * gui.char_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
gui_mch_get_screen_dimensions(int *screen_w, int *screen_h)
|
|
||||||
{
|
|
||||||
|
|
||||||
*screen_w = GetSystemMetrics(SM_CXFULLSCREEN)
|
|
||||||
- GetSystemMetrics(SM_CXFRAME) * 2;
|
|
||||||
/* FIXME: dirty trick: Because the gui_get_base_height() doesn't include
|
|
||||||
* the menubar for MSwin, we subtract it from the screen height, so that
|
|
||||||
* the window size can be made to fit on the screen. */
|
|
||||||
*screen_h = GetSystemMetrics(SM_CYFULLSCREEN)
|
|
||||||
- GetSystemMetrics(SM_CYFRAME) * 2
|
|
||||||
#ifdef FEAT_MENU
|
|
||||||
- gui_mswin_get_menu_height(FALSE)
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gui_mch_flash(int msec)
|
gui_mch_flash(int msec)
|
||||||
{
|
{
|
||||||
|
@ -121,6 +121,12 @@ do_window(nchar, Prenum, xchar)
|
|||||||
#ifdef FEAT_VISUAL
|
#ifdef FEAT_VISUAL
|
||||||
reset_VIsual_and_resel(); /* stop Visual mode */
|
reset_VIsual_and_resel(); /* stop Visual mode */
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef FEAT_QUICKFIX
|
||||||
|
/* When splitting the quickfix window open a new buffer in it,
|
||||||
|
* don't replicate the quickfix buffer. */
|
||||||
|
if (bt_quickfix(curbuf))
|
||||||
|
goto newwindow;
|
||||||
|
#endif
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
need_mouse_correct = TRUE;
|
need_mouse_correct = TRUE;
|
||||||
#endif
|
#endif
|
||||||
@ -161,6 +167,9 @@ do_window(nchar, Prenum, xchar)
|
|||||||
CHECK_CMDWIN
|
CHECK_CMDWIN
|
||||||
#ifdef FEAT_VISUAL
|
#ifdef FEAT_VISUAL
|
||||||
reset_VIsual_and_resel(); /* stop Visual mode */
|
reset_VIsual_and_resel(); /* stop Visual mode */
|
||||||
|
#endif
|
||||||
|
#ifdef FEAT_QUICKFIX
|
||||||
|
newwindow:
|
||||||
#endif
|
#endif
|
||||||
if (Prenum)
|
if (Prenum)
|
||||||
sprintf((char *)cbuf, "%ld", Prenum); /* window height */
|
sprintf((char *)cbuf, "%ld", Prenum); /* window height */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user