1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:18:00 +01:00

added :time command, please use when writing new functions and you think they are slow

This commit is contained in:
Martin Stubenschrott
2007-09-18 23:46:05 +00:00
parent 1e15906810
commit f450fa5515
3 changed files with 75 additions and 2 deletions

View File

@@ -509,8 +509,9 @@ function Events() //{{{
default:
// clear any selection made
var selection = window.content.getSelection();
if (selection)
try { // a simple if (selection) does not work
selection.collapseToStart();
} catch (e) { }
vimperator.commandline.clear();
vimperator.modes.reset();