Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into randy/live-dev-ut
Browse files Browse the repository at this point in the history
  • Loading branch information
redmunds committed Mar 14, 2013
2 parents 57fb5a0 + 2550c37 commit 520ccf6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/nls/fr/strings.js
Expand Up @@ -202,7 +202,7 @@ define({
"CMD_BLOCK_COMMENT": "Commenter les blocs/Annuler les commentaires",
"CMD_LINE_UP": "Déplacer la ligne vers le haut",
"CMD_LINE_DOWN": "Déplacer la ligne vers le bas",
"CMD_TOGGLE_CLOSE_BRACKETS": "[6734352] !é=Enable Close Brackets=!",
"CMD_TOGGLE_CLOSE_BRACKETS": "[6734352] !é=Auto Close Braces=!",

// View menu commands
"VIEW_MENU": "Affichage",
Expand Down
2 changes: 1 addition & 1 deletion src/nls/ja/strings.js
Expand Up @@ -202,7 +202,7 @@ define({
"CMD_BLOCK_COMMENT": "ブロックコメントの切り替え",
"CMD_LINE_UP": "行を上に移動",
"CMD_LINE_DOWN": "行を下に移動",
"CMD_TOGGLE_CLOSE_BRACKETS": "!能=[6734352] Enable Close Brackets_=!",
"CMD_TOGGLE_CLOSE_BRACKETS": "!能=[6734352] Auto Close Braces_=!",

// View menu commands
"VIEW_MENU": "表示",
Expand Down
14 changes: 8 additions & 6 deletions src/search/FindReplace.js
Expand Up @@ -113,9 +113,11 @@ define(function (require, exports, module) {
return found;
}

function clearHighlights(state) {
state.marked.forEach(function (markedRange) {
markedRange.clear();
function clearHighlights(cm, state) {
cm.operation(function () {
state.marked.forEach(function (markedRange) {
markedRange.clear();
});
});
state.marked.length = 0;
}
Expand All @@ -128,7 +130,7 @@ define(function (require, exports, module) {
}
state.query = null;

clearHighlights(state);
clearHighlights(cm, state);
});
}

Expand Down Expand Up @@ -176,7 +178,7 @@ define(function (require, exports, module) {
isFindFirst = true;
cm.operation(function () {
if (state.query) {
clearHighlights(getSearchState(cm));
clearHighlights(cm, state);
}
state.query = parseQuery(query);
if (!state.query) {
Expand Down Expand Up @@ -244,7 +246,7 @@ define(function (require, exports, module) {
});
$(modalBar).on("closeOk closeCancel closeBlur", function (e, query) {
// Clear highlights but leave search state in place so Find Next/Previous work after closing
clearHighlights(state);
clearHighlights(cm, state);

// As soon as focus goes back to the editor, restore normal selection color
$(cm.getWrapperElement()).removeClass("find-highlighting");
Expand Down
4 changes: 4 additions & 0 deletions src/styles/brackets_codemirror_override.less
Expand Up @@ -132,6 +132,10 @@
other than a vanilla .CodeMirror)
*/
.CodeMirror {
.CodeMirror {
background: transparent;
}

.CodeMirror span.CodeMirror-matchingbracket {
/* Ensure visibility against gray inline editor background */
background-color: @background-color-1;
Expand Down

0 comments on commit 520ccf6

Please sign in to comment.