Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
reload editor when click View in editor link from search replace view
This will prevent multiple code mirror instances has focues cursor
  • Loading branch information
Patrick Huang committed May 17, 2013
1 parent 654dc20 commit 01e5954
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -447,8 +447,10 @@ public void onKeyShortcut(KeyShortcutEvent event)

private void showDocInEditor(String doc, boolean runSearch)
{
contextHolder.updateContext(null); //this will ensure editor reload (prevent multiple cursors in code mirror)
HistoryToken token = HistoryToken.fromTokenString(history.getToken());
token.setDocumentPath(doc);
token.clearEditorFilterAndSearch();
token.setView(MainView.Editor);
if (runSearch)
{
Expand Down

0 comments on commit 01e5954

Please sign in to comment.