From ae12e1b5379d8cee2dd87891670536d01dbce45e Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 1 Jun 2012 14:38:41 -0700 Subject: [PATCH] insert_tabs called wcstring::append with arguments in the wrong order Should fix https://github.com/ridiculousfish/fishfish/issues/18 --- fish_indent.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fish_indent.cpp b/fish_indent.cpp index 0ccaef448..22a345b77 100644 --- a/fish_indent.cpp +++ b/fish_indent.cpp @@ -65,8 +65,7 @@ static void read_file( FILE *f, wcstring &b ) break; } - - b.push_back(c); + b.push_back((wchar_t)c); } } @@ -75,7 +74,7 @@ static void read_file( FILE *f, wcstring &b ) */ static void insert_tabs( wcstring &out, int indent ) { - out.append(L'\t', indent); + out.append(indent, L'\t'); }