phi/buff/delete_line.go
Felix Angell 8687f612d4 command palette is now has a hand written lexer
this means that we can 'type check' command palette arguments, e.g. if something should be a string or not, etc.
it uses the same lexer which is used for the syntax highlighting ... let's see how long that lasts.
2019-03-02 20:54:01 +00:00

14 lines
206 B
Go

package buff
import "github.com/felixangell/phi/lex"
func DeleteLine(v *BufferView, commands []*lex.Token) bool {
b := v.getCurrentBuff()
if b == nil {
return false
}
b.deleteLine()
return true
}