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

vfmt: set Preferences.is_fmt flag (bugfix)

This commit is contained in:
Delyan Angelov
2020-04-27 23:20:11 +03:00
parent 5d073dcce5
commit ce1215f507
2 changed files with 1 additions and 1 deletions

View File

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