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