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:
parent
5d073dcce5
commit
ce1215f507
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user