From 13d12f40384027bfbaf7b763fdc64e6a0f9da73d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 15 Jul 2013 13:10:20 +0200 Subject: [PATCH] Fixing regression Should move to the next fragment on a single replace. --- redakcja/static/js/wiki/view_search.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redakcja/static/js/wiki/view_search.js b/redakcja/static/js/wiki/view_search.js index e41f19d6..ae0fd2db 100644 --- a/redakcja/static/js/wiki/view_search.js +++ b/redakcja/static/js/wiki/view_search.js @@ -90,9 +90,12 @@ else {} self.searchCursor.select(); self.searchCursor.replace(query); + var found = self.search(); if(self.options['replace-all']) { - while(self.search()) + while(found) { self.replace(); + found = self.search(); + } } }; -- 2.20.1