hbspbar

[WIP] bspwm status bar
git clone https://hhvn.uk/hbspbar
git clone git://hhvn.uk/hbspbar
Log | Files | Refs

commit 3776ecd92be2886b2b9d41c2b78cc2adf46e14e6
parent f5e80f5bdcf43b7974064168c3eb0d4e993528df
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 19 Nov 2023 14:50:51 +0000

Prevent common.FileAsLines creating a phantom line

Diffstat:
Mcommon/common.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/common.go b/common/common.go @@ -29,7 +29,7 @@ func FileAsLines(file string) ([]string, error) { content, err := io.ReadAll(f) if err != nil { return nil, err } - lines := strings.Split(string(content), "\n") + lines := strings.Split(strings.TrimSuffix(string(content), "\n"), "\n") return lines, nil }