mirror of
https://github.com/felixangell/phi.git
synced 2024-09-11 15:55:25 +03:00
20 lines
291 B
Go
20 lines
291 B
Go
package buff
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/felixangell/phi/lex"
|
|
)
|
|
|
|
func ExitPhi(v *BufferView, _ []*lex.Token) BufferDirtyState {
|
|
for i := range v.buffers {
|
|
log.Println("Closing buffer ", i)
|
|
CloseBuffer(v, []*lex.Token{})
|
|
}
|
|
|
|
log.Println("Exiting!")
|
|
os.Exit(0)
|
|
return false
|
|
}
|