mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.1.0107: Python: getting buffer option clears message
Problem: Python: getting buffer option clears message. (Jacob Niehus) Solution: Don't use aucmd_prepbuf(). (closes #3079)
This commit is contained in:
14
src/option.c
14
src/option.c
@@ -9705,16 +9705,20 @@ get_option_value_strict(
|
|||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
aco_save_T aco;
|
buf_T *save_curbuf = curbuf;
|
||||||
aucmd_prepbuf(&aco, (buf_T *) from);
|
|
||||||
|
// only getting a pointer, no need to use aucmd_prepbuf()
|
||||||
|
curbuf = (buf_T *)from;
|
||||||
|
curwin->w_buffer = curbuf;
|
||||||
varp = get_varp(p);
|
varp = get_varp(p);
|
||||||
aucmd_restbuf(&aco);
|
curbuf = save_curbuf;
|
||||||
|
curwin->w_buffer = curbuf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (opt_type == SREQ_WIN)
|
else if (opt_type == SREQ_WIN)
|
||||||
{
|
{
|
||||||
win_T *save_curwin;
|
win_T *save_curwin = curwin;
|
||||||
save_curwin = curwin;
|
|
||||||
curwin = (win_T *)from;
|
curwin = (win_T *)from;
|
||||||
curbuf = curwin->w_buffer;
|
curbuf = curwin->w_buffer;
|
||||||
varp = get_varp(p);
|
varp = get_varp(p);
|
||||||
|
@@ -789,6 +789,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
107,
|
||||||
/**/
|
/**/
|
||||||
106,
|
106,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user