From 61d33f42695255278ed12eb6ab84386f173e3c33 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 4 Sep 2013 13:04:24 +0400 Subject: [PATCH] tweak style --- lib/ace/autocomplete.js | 2 ++ lib/ace/autocomplete/popup.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ace/autocomplete.js b/lib/ace/autocomplete.js index c4631974..65fdfd7c 100644 --- a/lib/ace/autocomplete.js +++ b/lib/ace/autocomplete.js @@ -225,6 +225,8 @@ var Autocomplete = function() { if (keepPopupPosition && this.base && this.completions) { var pos = this.editor.getCursorPosition(); var prefix = ace.session.getTextRange({start: this.base, end: pos}); + if (prefix == this.completions.filterText) + return; this.completions.setFilter(prefix); if (!this.completions.filtered.length) return this.detach(); diff --git a/lib/ace/autocomplete/popup.js b/lib/ace/autocomplete/popup.js index 63f545c4..80cc661b 100644 --- a/lib/ace/autocomplete/popup.js +++ b/lib/ace/autocomplete/popup.js @@ -246,12 +246,14 @@ dom.importCssString("\ z-index: -1;\ }\ .ace_autocomplete .ace_completion-highlight{\ - font-weight: bold\ + font-weight: bold;\ + text-shadow: 0 0 0.5px #000\ }\ .ace_autocomplete {\ width: 280px;\ z-index: 200000;\ background: #fbfbfb;\ + color: #444;\ border: 1px lightgray solid;\ position: fixed;\ box-shadow: 2px 3px 5px rgba(0,0,0,.2);\