diff --git a/content/events.js b/content/events.js index 2faedcb5..60dcb5a6 100644 --- a/content/events.js +++ b/content/events.js @@ -1445,6 +1445,8 @@ liberator.Events = function () //{{{ liberator.statusline.updateUrl(); liberator.statusline.updateProgress(); + liberator.autocommands.trigger("LocationChange", liberator.buffer.URL); + // if this is not delayed we get the position of the old buffer setTimeout(function () { liberator.statusline.updateBufferPosition(); }, 100); }, diff --git a/locale/en-US/autocommands.txt b/locale/en-US/autocommands.txt index 1c9d56c2..4e3ce5ed 100644 --- a/locale/en-US/autocommands.txt +++ b/locale/en-US/autocommands.txt @@ -20,9 +20,10 @@ Add {cmd} to the list of commands Vimperator will execute on {event}: Available {events}: -* Startup -* Quit +* LocationChange * PageLoad +* Quit +* Startup {pat} is a regular expression, use .* if you want to match all events. ________________________________________________________________________________