1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:08:02 +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

@@ -87,8 +87,9 @@ vimperator.modes = (function()
{
// clear any selection made
var selection = window.content.getSelection();
if (selection)
try { // a simple if (selection) does not work
selection.collapseToStart();
} catch (e) { }
}
else
vimperator.editor.unselectText();