From 58b1c5be8199c1ae028216000bd0fd4706972001 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 30 Aug 2017 16:20:49 +0300 Subject: [PATCH] fixup 508f71f2: revert to 'function' to use the correct 'this' --- edit/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/edit.js b/edit/edit.js index d28b15f4..b2f72a7b 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -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) {