1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 15:24:10 +01:00

added LocationChange autocmd

This commit is contained in:
Martin Stubenschrott
2008-06-16 21:38:04 +00:00
parent ef789d9aee
commit 636362efa3
2 changed files with 5 additions and 2 deletions

View File

@@ -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);
},

View File

@@ -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.
________________________________________________________________________________