Skip to content

Commit 9264f9f

Browse files
authored
Merge pull request #25 from eraserhd/initial-load-fix
Fix initial load
2 parents 0cdcda0 + 9beb150 commit 9264f9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rplugin/node/nvim-parinfer.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nvim_parinfer/main.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
(defn parinfer-indent
5252
[nvim args [[_ cursor-line cursor-x _] bufnum lines mode prev-cursor-scope normal-cmd reg-minus] nvim-callback]
5353
(let [start (js/Date.)
54-
cursor-dx (if (string/includes? "cd" normal-cmd) reg-minus 0)]
54+
cursor-dx (if (#{"c" "d"} normal-cmd) reg-minus 0)]
5555
(if-let [new-lines (format-lines lines cursor-x cursor-line bufnum mode prev-cursor-scope cursor-dx)]
5656
(do
5757
#_(js/debug "c" (- (.getTime (js/Date.)) (.getTime start)))

0 commit comments

Comments
 (0)