diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2017-06-06 13:04:22 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2017-06-06 13:04:22 +0300 |
commit | e44e5e58bfa09c67a7c7d3e576c9eeebccd1ce03 (patch) | |
tree | 75e58e570f53f943116e8043d0653f06fe57f12c /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion | |
parent | 24e4fb205c1d1487658d3f2e9df7b7039e9fa8f8 (diff) |
Fixed 'Bug 56290 - Code completion/Intellisense throws away first
arrow keystroke when selecting options'
Not a real fix - but the behavior is correct. However the display of
the suggestion mode is not. That should make a bigger difference.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs index e99a8e8515..f9c04a5d21 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWidget.cs @@ -600,10 +600,17 @@ namespace MonoDevelop.Ide.CodeCompletion iypos = iconHeight < rowHeight ? ypos + (rowHeight - iconHeight) / 2 : ypos; if (item == SelectedItemIndex) { var barStyle = SelectionEnabled ? Styles.CodeCompletion.SelectionBackgroundColor : Styles.CodeCompletion.SelectionBackgroundInactiveColor; - - context.Rectangle (0, ypos, Allocation.Width, rowHeight); context.SetSourceColor (barStyle.ToCairoColor ()); - context.Fill (); + + if (SelectionEnabled) { + context.Rectangle (0, ypos, Allocation.Width, rowHeight); + context.Fill (); + } else { + context.LineWidth++; + context.Rectangle (0.5, ypos + 0.5, Allocation.Width - 1, rowHeight - 1); + context.Stroke (); + context.LineWidth--; + } } if (icon != null) { |