Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ type Win struct {
event *client.Fid
data *client.Fid
xdata *client.Fid
rdsel *client.Fid
wrsel *client.Fid
errors *client.Fid
ebuf *bufio.Reader
c chan *Event
Expand Down Expand Up @@ -299,6 +301,12 @@ func (w *Win) CloseFiles() {
w.xdata.Close()
w.xdata = nil

w.rdsel.Close()
w.rdsel = nil

w.wrsel.Close()
w.wrsel = nil

w.errors.Close()
w.errors = nil
}
Expand Down Expand Up @@ -347,6 +355,12 @@ func (w *Win) fid(name string) (*client.Fid, error) {
f = &w.tag
case "xdata":
f = &w.xdata
case "rdsel":
f = &w.rdsel
mode = plan9.OREAD
case "wrsel":
f = &w.wrsel
mode = plan9.OWRITE
case "errors":
f = &w.errors
mode = plan9.OWRITE
Expand Down Expand Up @@ -947,8 +961,7 @@ func (w *Win) execute(h EventHandler, cmd string) bool {
}

func (w *Win) Selection() string {
w.Ctl("addr=dot")
data, err := w.ReadAll("xdata")
data, err := w.ReadAll("rdsel")
if err != nil {
w.Err(err.Error())
}
Expand Down