~mkhl/xplor

2ae3bea9c783abefefbd94e71a050f6b3032f97d — Martin Kühl 10 months ago e5db565
Set cwd correctly
1 files changed, 2 insertions(+), 2 deletions(-)

M xplor.go
M xplor.go => xplor.go +2 -2
@@ 118,7 118,7 @@ func openWindow() error {
// Drawing Structure

func draw() error {
	if err := win.Name("%s-%s/", this, root); err != nil {
	if err := win.Name("%s/-%s", root, this); err != nil {
		return err
	}
	var b bytes.Buffer


@@ 432,7 432,7 @@ func loc(e *acme.Event) (string, error) {
	if loc == "" {
		return fail(nil)
	}
	prefix := fmt.Sprintf("%s-%s/:", this, root)
	prefix := fmt.Sprintf("%s/-%s:", root, this)
	if !strings.HasPrefix(loc, prefix) {
		return fail(nil)
	}