kopia lustrzana
https://github.com/Hilbis/Hilbish
synced 2025-07-18 16:52:02 +00:00
Porównaj commity
2 Commity
38233ccda4
...
4596159b8f
Autor | SHA1 | Data | |
---|---|---|---|
|
4596159b8f | ||
|
9eabe5323d |
5
main.go
5
main.go
@ -184,7 +184,10 @@ input:
|
||||
}
|
||||
|
||||
input = strings.TrimSpace(input)
|
||||
if len(input) == 0 { continue }
|
||||
if len(input) == 0 {
|
||||
hooks.Em.Emit("command.exit", 0)
|
||||
continue
|
||||
}
|
||||
|
||||
if strings.HasSuffix(input, "\\") {
|
||||
for {
|
||||
|
1
rl.go
1
rl.go
@ -22,6 +22,7 @@ func NewLineReader(prompt string) *LineReader {
|
||||
}
|
||||
|
||||
func (lr *LineReader) Read() (string, error) {
|
||||
hooks.Em.Emit("command.precmd", nil)
|
||||
return readline.String(lr.Prompt)
|
||||
}
|
||||
|
||||
|
Ładowanie…
x
Reference in New Issue
Block a user