diff options
author | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-05-04 01:41:56 +0300 |
---|---|---|
committer | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-05-04 01:41:56 +0300 |
commit | 51c462301b93eccbce6b9ed67675c8d26b998a7d (patch) | |
tree | c74632386d3fc974c0d01a17eeb402a28c496873 /lua/cmake/project.lua | |
parent | ac989fbbaad7a39b8cf075e165172a358c1620a1 (diff) |
fix: properly read for large number of targets in fileapi reply
Diffstat (limited to 'lua/cmake/project.lua')
-rw-r--r-- | lua/cmake/project.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/cmake/project.lua b/lua/cmake/project.lua index 5524fbd..0edbb02 100644 --- a/lua/cmake/project.lua +++ b/lua/cmake/project.lua @@ -174,7 +174,7 @@ end --- Set current build option by index --- @param idx number function Project.set_current_build_option(idx) - local _size = #Project[current_config].build_options + local _size = #configs[current_config].build_options assert(not (idx < 1 or idx > _size), "Index is out of range. Index is " .. idx .. " for " .. _size .. "config(s)") configs[current_config].current_build = idx end |