From 9af642d29918e8b36d7f1fd17e4c771662d4fe97 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 26 Oct 2002 15:31:33 +0000 Subject: [PATCH] Ignore dot files in the styles directory. --- src/Screen.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 165a4a93..eb933206 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -2314,7 +2314,8 @@ bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) { for (; it != end; ++it) { const string& fname = *it; - if (fname[fname.size()-1] == '~') + //ignore backups and dot files + if (fname[fname.size()-1] == '~' || fname[0] == '.') continue; string style = stylesdir; -- 2.45.2