Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion runtime/doc/autocmd.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 21
*autocmd.txt* For Vim version 9.1. Last change: 2025 Jun 19


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -130,6 +130,10 @@ exception is that "<sfile>" is expanded when the autocmd is defined. Example:
:au BufNewFile,BufRead *.html so <sfile>:h/html.vim

Here Vim expands <sfile> to the name of the file containing this line.
However, <sfile> works differently in a function, in which case it's better to
use `:execute` with <script> to achieve the same purpose:
>
:exe $'au BufNewFile,BufRead *.html so {expand("<script>:h")}/html.vim'

`:autocmd` adds to the list of autocommands regardless of whether they are
already present. When your .vimrc file is sourced twice, the autocommands
Expand Down
8 changes: 4 additions & 4 deletions src/if_py_both.h
Original file line number Diff line number Diff line change
Expand Up @@ -2409,18 +2409,18 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs)

Py_DECREF(item);

if (PySequence_Fast_GET_SIZE(fast) != 2)
if (PySequence_Size(fast) != 2)
{
Py_DECREF(iterator);
Py_DECREF(fast);
PyErr_FORMAT(PyExc_ValueError,
N_("expected sequence element of size 2, "
"but got sequence of size %d"),
(int) PySequence_Fast_GET_SIZE(fast));
(int) PySequence_Size(fast));
return NULL;
}

keyObject = PySequence_Fast_GET_ITEM(fast, 0);
keyObject = PySequence_GetItem(fast, 0);

if (!(key = StringToChars(keyObject, &todecref)))
{
Expand All @@ -2442,7 +2442,7 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs)
}
di->di_tv.v_type = VAR_UNKNOWN;

valObject = PySequence_Fast_GET_ITEM(fast, 1);
valObject = PySequence_GetItem(fast, 1);

if (ConvertFromPyObject(valObject, &di->di_tv) == -1)
{
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1472,
/**/
1471,
/**/
Expand Down