mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "e4833bdba9b2f7a3b73309c64a697bfa5c1d2952" and "38233ccda41d78390cd8d497fd37afb74f401f6d" have entirely different histories.
e4833bdba9
...
38233ccda4
|
@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) {
|
|||
b.Em.Emit(name, args...)
|
||||
}
|
||||
|
||||
func (b *Bait) catch(name string, catcher func(...interface{})) {
|
||||
func (b *Bait) catch(name string, catcher func(interface{})) {
|
||||
b.Em.On(name, catcher)
|
||||
}
|
||||
|
|
5
main.go
5
main.go
|
@ -184,10 +184,7 @@ input:
|
|||
}
|
||||
|
||||
input = strings.TrimSpace(input)
|
||||
if len(input) == 0 {
|
||||
hooks.Em.Emit("command.exit", 0)
|
||||
continue
|
||||
}
|
||||
if len(input) == 0 { continue }
|
||||
|
||||
if strings.HasSuffix(input, "\\") {
|
||||
for {
|
||||
|
|
1
rl.go
1
rl.go
|
@ -22,7 +22,6 @@ func NewLineReader(prompt string) *LineReader {
|
|||
}
|
||||
|
||||
func (lr *LineReader) Read() (string, error) {
|
||||
hooks.Em.Emit("command.precmd", nil)
|
||||
return readline.String(lr.Prompt)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue