* [9fans] Bug: Acme: addr does not print the correct end of selection after addr=dot
@ 2024-09-30 18:20 kalterdev
2024-09-30 18:21 ` [9fans] " kalterdev
0 siblings, 1 reply; 2+ messages in thread
From: kalterdev @ 2024-09-30 18:20 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]
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:
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.
plan9port version
a2567fcac9851e5cc965a236679f568b0e79cff2
OS version
macOS 14.5 (23F79)
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T584db35e12efefbb-Mc9be6abf1986e4a93228d077
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2482 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] Re: Bug: Acme: addr does not print the correct end of selection after addr=dot
2024-09-30 18:20 [9fans] Bug: Acme: addr does not print the correct end of selection after addr=dot kalterdev
@ 2024-09-30 18:21 ` kalterdev
0 siblings, 0 replies; 2+ messages in thread
From: kalterdev @ 2024-09-30 18:21 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
Sorry, I have forgotten to include the version of 9fans.net/go. It's v0.0.7
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T584db35e12efefbb-M5723f9081d15daa2691a9112
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-30 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-30 18:20 [9fans] Bug: Acme: addr does not print the correct end of selection after addr=dot kalterdev
2024-09-30 18:21 ` [9fans] " kalterdev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).