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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user