mirror of https://github.com/buggins/dlangide.git
revert change in findPairedBracket, set max height to completion popup menu.
This commit is contained in:
parent
0b026d2c6c
commit
317749bee8
|
@ -103,6 +103,7 @@ class DSourceEdit : SourceEdit {
|
||||||
completionPopupItem.updateActionState(this);
|
completionPopupItem.updateActionState(this);
|
||||||
PopupMenu popupMenu = new PopupMenu(completionPopupItem);
|
PopupMenu popupMenu = new PopupMenu(completionPopupItem);
|
||||||
popupMenu.onMenuItemActionListener = this;
|
popupMenu.onMenuItemActionListener = this;
|
||||||
|
popupMenu.maxHeight(400);
|
||||||
PopupWidget popup = window.showPopup(popupMenu, this, PopupAlign.Point | PopupAlign.Right, textPosToClient(_caretPos).left + left + _leftPaneWidth, textPosToClient(_caretPos).top + top + margins.top);
|
PopupWidget popup = window.showPopup(popupMenu, this, PopupAlign.Point | PopupAlign.Right, textPosToClient(_caretPos).left + left + _leftPaneWidth, textPosToClient(_caretPos).top + top + margins.top);
|
||||||
popup.flags = PopupFlags.CloseOnClickOutside;
|
popup.flags = PopupFlags.CloseOnClickOutside;
|
||||||
Log.d("Showing popup at ", textPosToClient(_caretPos).left, " ", textPosToClient(_caretPos).top);
|
Log.d("Showing popup at ", textPosToClient(_caretPos).left, " ", textPosToClient(_caretPos).top);
|
||||||
|
@ -271,7 +272,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
ch = nextBracket(dir, p);
|
ch = nextBracket(dir, p);
|
||||||
if (!ch) // no more brackets
|
if (!ch) // no more brackets
|
||||||
break;
|
return p;
|
||||||
auto match = _bracketStack.process(ch);
|
auto match = _bracketStack.process(ch);
|
||||||
if (match == BracketMatch.FOUND)
|
if (match == BracketMatch.FOUND)
|
||||||
return p;
|
return p;
|
||||||
|
|
Loading…
Reference in New Issue