summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acme/xfid.c
AgeCommit message (Collapse)Author
2020-06-06acme: import event log from plan9port (thanks fshahriar)Ori Bernstein
Based off the following 3 commits: 4a3fb87264f8bc03fc62f00ef335056f30d18023 45f8ba54143323f08a21343633764caa59aa3ea3 fdf6ef333705c844bcf3ccf2f93b2773f1a6aa41 Reading /mnt/acme/log reports a log of window create, put, focus, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block.
2020-05-31acme: implement 'scratch' ctl command (thanks Drew DeVault)kvik
The new command marks the target window as a scratch window -- a window whose state cannot be "dirtied" by changes made to its body, therefore avoiding warnings about unsaved changes when deleting the window or exiting acme. Existing examples of scratch windows are error, directory, and guide windows, whose scratchness is set internally. With the new command users and programs alike can create their own scratch windows. This is put to use in acme's own win(1).
2018-10-20acme: fix fd checks - initialize Window.rdselfd to -1 not 0cinap_lenrek
2018-10-20fix misleading/wrong fd checksBurnZeZ
2014-12-11acme: fix buffer overrun in xfidutfread() and xfidruneread(), cleanupcinap_lenrek
the utf8 buffers b1 where allocated from fbufalloc() which gives us BUFSIZE bytes, but Xfid->count can be bigger than that. so just emalloc() the requested number of bytes. when converting from Runes to utf-8, we have to account for the terminating '\0' byte snprint() places, so fix the maxrune number calculation instead of using BUFSIZE+1 as buffer size.
2013-01-25acme: fix unicode handling for editout (from sources)cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen