You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact, I do not know where the problem is located exactly, since I rely on 9fans.net/go/acme. Assuming it handles the API correctly, the steps are as follows:
Create a file with the following content, build it and run on any selection:
package main
import (
"fmt"
"os"
"strconv"
"9fans.net/go/acme"
)
func main() {
winid, _ := strconv.Atoi(os.Getenv("winid"))
w, _ := acme.Open(winid, nil)
w.ReadAddr() // make sure "addr" is open
w.Ctl("addr=dot")
r0, r1, _ := w.ReadAddr()
fmt.Println(r0, r1)
}
(Error handling is omitted intentionally.)
The address of the beginning is print twice, the end is lost.
Expected behavior
It prints the beginning and end of the selection.
Unexpected behavior
It prints the beginning of the selection twice.
Steps to reproduce the problem
In fact, I do not know where the problem is located exactly, since I rely on 9fans.net/go/acme. Assuming it handles the API correctly, the steps are as follows:
Create a file with the following content, build it and run on any selection:
(Error handling is omitted intentionally.)
The address of the beginning is print twice, the end is lost.
plan9port version
a2567fc
9fans.net/go version
v0.0.7
OS version
macOS 14.5 (23F79)
The text was updated successfully, but these errors were encountered: