~raphi/public-inbox

trim spaces from title and layout symbol v1 PROPOSED

Ben Collerson: 1
 trim spaces from title and layout symbol

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~raphi/public-inbox/patches/37124/mbox | git am -3
Learn more about email & git

[PATCH] trim spaces from title and layout symbol Export this patch

---
 src/main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp
index 697909b..6274959 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -300,7 +300,8 @@ static void handleStdin(const std::string& line)
		return;
	if (command == "title") {
		auto title = std::string {};
 		std::getline(stream, title);
		stream >> std::ws;
		std::getline(stream, title);
		mon->bar.setTitle(title);
	} else if (command == "selmon") {
		uint32_t selected;
@@ -326,6 +327,7 @@ static void handleStdin(const std::string& line)
		mon->tags = tags;
	} else if (command == "layout") {
		auto layout = std::string {};
		stream >> std::ws;
		std::getline(stream, layout);
		mon->bar.setLayout(layout);
	}
-- 
2.38.1
Please ignore. already merged.