fix #3463 - broke aliases
parent
6d756d593d
commit
e80153c9d4
|
|
@ -39,12 +39,7 @@ func (c *Interpreter) ClearNS() {
|
||||||
|
|
||||||
// SwitchNS replaces the current namespace with the provided one.
|
// SwitchNS replaces the current namespace with the provided one.
|
||||||
func (c *Interpreter) SwitchNS(ns string) {
|
func (c *Interpreter) SwitchNS(ns string) {
|
||||||
if !c.HasNS() {
|
c.args[nsKey] = ns
|
||||||
c.Reset(c.line + " " + ns)
|
|
||||||
}
|
|
||||||
if ons, ok := c.NSArg(); ok {
|
|
||||||
c.Reset(strings.TrimSpace(strings.Replace(c.line, ons, ns, 1)))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Interpreter) grok() {
|
func (c *Interpreter) grok() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue