fixup 508f71f2: revert to 'function' to use the correct 'this'

This commit is contained in:
tophf 2017-08-30 16:20:49 +03:00
parent 6f0ab8113e
commit 58b1c5be81

View File

@ -902,9 +902,9 @@ function setupGlobalSearch() {
let query;
let replacement;
activeCM = focusClosestCM(activeCM);
customizeOpenDialog(activeCM, template[all ? 'replaceAll' : 'replace'], txt => {
customizeOpenDialog(activeCM, template[all ? 'replaceAll' : 'replace'], function (txt) {
query = txt;
customizeOpenDialog(activeCM, template.replaceWith, txt => {
customizeOpenDialog(activeCM, template.replaceWith, function (txt) {
replacement = txt;
queue = editors.rotate(-editors.indexOf(activeCM));
if (all) {