File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ void MaybeEmphasize(int i, string currColor)
374
374
if ( suggestion != null )
375
375
{
376
376
// TODO: write suggestion out in dark black by default, but it needs to be configurable.
377
- color = "\x1b [90m" ;
377
+ // Find the most suitable color using https://stackoverflow.com/a/33206814
378
+ color = "\x1b [38;5;238m" ;
378
379
UpdateColorsIfNecessary ( color ) ;
379
380
380
381
foreach ( char charToRender in suggestion )
Original file line number Diff line number Diff line change @@ -21,15 +21,16 @@ static DummySuggestion()
21
21
"git diff" ,
22
22
"git diff --cached" ,
23
23
"git add -u" ,
24
- "git add -A"
24
+ "git add -A" ,
25
+ "start" ,
25
26
} ;
26
27
}
27
28
28
29
internal static string GetCommandLineSuggestion ( string text )
29
30
{
30
31
foreach ( string candidate in s_suggestions )
31
32
{
32
- if ( candidate . StartsWith ( text , StringComparison . OrdinalIgnoreCase ) )
33
+ if ( candidate . Length > text . Length && candidate . StartsWith ( text , StringComparison . OrdinalIgnoreCase ) )
33
34
{
34
35
return candidate ;
35
36
}
You can’t perform that action at this time.
0 commit comments