1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:48:02 +01:00

Dont show substring preview when caret isnt at end of line. Fix unanchored substring generation.

This commit is contained in:
Kris Maglione
2008-11-28 09:02:03 +00:00
parent 25d983ec01
commit 082d9d12fa
4 changed files with 8 additions and 9 deletions

View File

@@ -319,7 +319,7 @@ function CommandLine() //{{{
catch (e) {}
let wildmode = options.get("wildmode");
let wildType = wildmode.values[Math.min(wildIndex, wildmode.values.length - 1)];
if (wildmode.checkHas(wildType, "longest"))
if (wildmode.checkHas(wildType, "longest") && commandWidget.selectionStart == commandWidget.value.length)
{
// highlight= won't work here.
let start = commandWidget.selectionStart;