• Again Panic

    From Michiel van der Vlist@2:280/5555 to Alexander N. Skovpen on Fri Apr 5 20:55:06 2019
    Hello Alexander N. Skovpen!

    04 Apr 19 20:55:18, Alexander N. Skovpen wrote to Michiel van der Vlist:


    MvdV>> My suspicion is that this is related to the repeated use of control Y to delete lines.
    MvdV>> panic: runtime error: index out of range
    fixed 1.0.5

    I am afraid not....

    Again after repeated use of control Y.

    panic: runtime error: index out of range

    goroutine 1 [running]: github.com/askovpen/goated/vendor/github.com/askovpen/gocui.(*View).EditEnd(0x11044b40, 0x
    , 0x110f1c40)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/edit.go:
    x89 github.com/askovpen/goated/vendor/github.com/askovpen/gocui.simpleEditor(0x11044b40, 0xfff
    c500)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/edit.go:

    48 hub.com/askovpen/goated/vendor/github.com/askovpen/gocui.EditorFunc.Edit(0x5555f4, 0x11+0x1a3
    044b40, 0x1102fff0, 0x0, 0x0)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/edit.go:

    2ithub.com/askovpen/goated/vendor/github.com/askovpen/gocui.(*Gui).onKey(0x110b8fa0, 0x110
    29ee0, 0x110770c0, 0x11037fd0)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/gui.go:66 +0x3f
    a github.com/askovpen/goated/vendor/github.com/askovpen/gocui.(*Gui).handleEvent(0x110b8fa0,
    0x0)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/gui.go:4

    13 +ub.com/askovpen/goated/vendor/github.com/askovpen/gocui.(*Gui).MainLoop(0x110b8fa0, 0x0x30
    55644, 0x110745d0)
    c:/gopath/src/github.com/askovpen/goated/vendor/github.com/askovpen/gocui/gui.go:3
    73 +0x1f3
    main.main()
    c:/gopath/src/github.com/askovpen/goated/goated.go:61 +0x426



    Michiel


    --- goAtEd-windows/386 1.0.5-154-a1826692
    * Origin: (2:280/5555)