From: kalterdev@gmail.com
To: 9fans <9fans@9fans.net>
Subject: [9fans] Bug: Acme: addr does not print the correct end of selection after addr=dot
Date: Mon, 30 Sep 2024 14:20:47 -0400 [thread overview]
Message-ID: <17277204470.1874c6bbA.801124@composer.9fans.topicbox.com> (raw)
[-- 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 --]
next reply other threads:[~2024-09-30 18:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 18:20 kalterdev [this message]
2024-09-30 18:21 ` [9fans] " kalterdev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17277204470.1874c6bbA.801124@composer.9fans.topicbox.com \
--to=kalterdev@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).