From 1b0a2bc1aa232d1a45d0f481db986859da21a0b0 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Tue, 6 Jul 2021 17:22:55 +0800 Subject: [PATCH 1/2] add compile_commands.json to gitignore Apparently ccls needs it to work, and it's usually located in project root. I symlinked it from the build folder and now I should put it in gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4b46c148..96be3276 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ subprojects/reproc lite error.txt .ccls-cache +compile_commands.json From 050f131261015747752163a7343038279b6ff101 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Tue, 6 Jul 2021 17:28:38 +0800 Subject: [PATCH 2/2] fix number of parameters passed to self:move_towards self:move_towards(self) causes self to be passed twice, ignoring rate --- data/core/view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/view.lua b/data/core/view.lua index 2fb431d6..24c84c8d 100644 --- a/data/core/view.lua +++ b/data/core/view.lua @@ -18,7 +18,7 @@ end function View:move_towards(t, k, dest, rate) if type(t) ~= "table" then - return self:move_towards(self, t, k, dest, rate) + return self:move_towards(t, k, dest, rate) end local val = t[k] if not config.transitions or math.abs(val - dest) < 0.5 then