name of the changed file fixed

This commit is contained in:
alessio 2016-08-23 13:14:23 +02:00
parent 6b84e34f2c
commit 91f34866e0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ func (p *Project) watching() {
if _, err := os.Stat(event.Name); err == nil {
i := strings.Index(event.Name, filepath.Ext(event.Name))
if event.Name[:i] != "" {
log.Println(pname(p.Name, 4), ":", Magenta(event.Name))
log.Println(pname(p.Name, 4), ":", Magenta(event.Name[:i]))
// stop and run again
if p.Run {