fix #3463 - broke aliases

mine
derailed 2025-07-16 07:40:31 -06:00
parent 6d756d593d
commit e80153c9d4
1 changed files with 1 additions and 6 deletions

View File

@ -39,12 +39,7 @@ func (c *Interpreter) ClearNS() {
// SwitchNS replaces the current namespace with the provided one.
func (c *Interpreter) SwitchNS(ns string) {
if !c.HasNS() {
c.Reset(c.line + " " + ns)
}
if ons, ok := c.NSArg(); ok {
c.Reset(strings.TrimSpace(strings.Replace(c.line, ons, ns, 1)))
}
c.args[nsKey] = ns
}
func (c *Interpreter) grok() {