aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/edit.c
Commit message (Collapse)AuthorAgeFilesLines
* acme, sam, samterm: remove weird switch usageRuss Cox2021-01-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | For whatever reason all three of these programs contain switches like: switch(x) { case 1: if(cond) case 2: f(); } Like Duff's device, this is legal C but more obscure than it really needs to be. This commit assumes those are intended as written and simply writes them more clearly. I did consider that maybe they are mistakes, but in the case of sam/regexp.c, my rewrite in this commit matches the acme/regx.c that has been in plan9port since I added acme in 2003. (I didn't bother to dig up the old Plan 9 releases.) Assuming acme/regx.c has been correct for the past two decades, this commit should be correct too.
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-2/+2
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* acme: check file content before declaring file "modified since last read"Russ Cox2017-10-101-0/+1
| | | | | | | | | | | | | Bad remote file systems can change mtime unexpectedly, and then there is the problem that git rebase and similar operations like to change the files and then change them back, modifying the mtimes but not the content. Avoid spurious Put errors on both of those by checking file content. (False positive "modified since last read" make the real ones difficult to notice.)
* acme: fix off by one in editcmd, pointer comparison in getch, nextcRuss Cox2010-07-141-3/+3
| | | | | R=r http://codereview.appspot.com/868046
* acme: sync against Plan 9, remove -$ optionRuss Cox2008-03-071-12/+10
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-3/+3
|
* applersc2005-07-131-0/+1
|
* changes from plan 9rsc2004-12-271-0/+1
|
* change to use new thread libraryrsc2004-12-271-0/+1
|
* More files related to user-level file servers.rsc2003-12-111-0/+682
Also add acme!