From 1fe94513f14a49cfcce17fc6a96fdf40bf1fb467 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijn@haverbeke.nl> Date: Fri, 19 Aug 2016 10:39:19 +0200 Subject: [PATCH] Fix copy-pasted bug in locateNodeInLineView --- lib/codemirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codemirror.js b/lib/codemirror.js index aa125b66e..292eda966 100644 --- a/lib/codemirror.js +++ b/lib/codemirror.js @@ -1971,7 +1971,7 @@ if (found) return badPos(Pos(found.line, found.ch + dist), bad); else - dist += after.textContent.length; + dist += before.textContent.length; } } -- GitLab