diff --git a/lib/ex.coffee b/lib/ex.coffee index df78b6d..e6af1fe 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -372,7 +372,7 @@ class Ex # https://atom.io/docs/api/v1.18.0/TextEditor#instance-backwardsScanInBufferRange editor.backwardsScanInBufferRange( patternRE, - [[line, 0], [line + 1, 0]], + [[line, 0], [line - 1, 0]], ({match, replace}) -> replace(replaceGroups(match[..], substition)) )