add config option to disable text scrolling in header window

This commit is contained in:
Andrzej Rybczak
2009-06-04 12:13:49 +02:00
parent 5cbc6dfb5b
commit 1e340211be
5 changed files with 13 additions and 0 deletions

View File

@@ -333,6 +333,8 @@ const std::basic_string<my_char_t> &Scroller(const string &str, size_t width, si
static std::basic_string<my_char_t> result;
result.clear();
std::basic_string<my_char_t> s = TO_WSTRING(str);
if (!Config.header_text_scrolling)
return (result = s);
size_t len;
# ifdef _UTF8
len = Window::Length(s);