openbsd-ports/audio/ncmpcpp/patches/patch-src_settings_cpp
dcoppa 7aba82966d Fix columns generation without configuration file (the text of the
playlist disappeared in columns display mode when there is no config
file)
(upstream git commit 6126def6c5b339c7f43d99c47501dde21d4943b3)

help: fix typo
(upstream git commit a22e875473bb796eb1e905ca4d40b39c90133637)
2012-08-08 12:32:10 +00:00

23 lines
623 B
Plaintext

$OpenBSD: patch-src_settings_cpp,v 1.3 2012/08/08 12:32:10 dcoppa Exp $
Fix columns generation without configuration file (the text of the
playlist disappeared in columns display mode when there is no config
file)
(upstream git commit 6126def6c5b339c7f43d99c47501dde21d4943b3)
--- src/settings.cpp.orig Sun Apr 1 18:49:09 2012
+++ src/settings.cpp Wed Aug 8 13:41:05 2012
@@ -1330,7 +1330,11 @@ void NcmpcppConfig::Read()
}
}
f.close();
-
+}
+
+void NcmpcppConfig::GenerateColumns()
+{
+ columns.clear();
std::string width;
while (!(width = GetLineValue(song_list_columns_format, '(', ')', 1)).empty())
{