diff options
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r-- | fish_indent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp index 22a345b7..298d52e8 100644 --- a/fish_indent.cpp +++ b/fish_indent.cpp @@ -74,7 +74,8 @@ static void read_file( FILE *f, wcstring &b ) */ static void insert_tabs( wcstring &out, int indent ) { - out.append(indent, L'\t'); + if (indent > 0) + out.append((size_t)indent, L'\t'); } |