1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: fix compilation; handle the case when fmt.tabs is not enough

This commit is contained in:
Delyan Angelov
2020-04-28 16:04:37 +03:00
parent eb9448e59e
commit 8ea087f957
2 changed files with 15 additions and 8 deletions

View File

@@ -141,8 +141,8 @@ fn main() {
}
fn (foptions &FormatOptions) format_file(file string) {
prefs := pref.new_preferences()
prefs.is_fmt = util.is_fmt()
mut prefs := pref.new_preferences()
prefs.is_fmt = util.is_fmt()
if foptions.is_verbose {
eprintln('vfmt2 running fmt.fmt over file: $file')
}