Support multiple read --line variable outputs

ref #4861. Also closes #4917.
This commit is contained in:
Mahmoud Al-Qudsi
2018-04-17 13:28:56 -05:00
parent bd8c8ceb59
commit 3742a7827f
2 changed files with 115 additions and 111 deletions

View File

@@ -31,7 +31,7 @@ wcstring_range wcstring_tok(wcstring& str, const wcstring& needle, wcstring_rang
}
wcstring truncate(const wcstring &input, int max_len, ellipsis_type etype) {
if (input.size() <= max_len) {
if (input.size() <= (size_t) max_len) {
return input;
}