diff --git a/CHANGELOG.md b/CHANGELOG.md index b42145c4..b280005e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.1.4] - 2024-08-02 + +### Fixed + +- LSP (runnables/quickfix executor): Quickfix list populated with a single line. + ## [5.1.3] - 2024-08-02 ### Fixed diff --git a/lua/rustaceanvim/executors/quickfix.lua b/lua/rustaceanvim/executors/quickfix.lua index f9092eda..16b8de84 100644 --- a/lua/rustaceanvim/executors/quickfix.lua +++ b/lua/rustaceanvim/executors/quickfix.lua @@ -8,8 +8,9 @@ local function scroll_qf() end end -local function append_qf(line) - vim.fn.setqflist({}, 'a', { lines = { line } }) +---@param lines string[] +local function append_qf(lines) + vim.fn.setqflist({}, 'a', { lines = { lines } }) scroll_qf() end @@ -38,7 +39,7 @@ local M = { %s %s ]]):format(sc.stdout or '', sc.stderr or '') - append_qf(data) + append_qf(vim.split(data, '\n')) end) ) end,