aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-11/+11
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>
2017-11-02acme: preserve window position and selection during GetRuss Cox1-1/+1
Before, executing Get in a file rewound the window offset and selection to the start of the file. After this CL, Get preserves the window offset and selection, where preserve is defined as "the same line number and rune offset within the line". So if the window started at line 10 before and the selection was line 13 chars 5-7, then that will still be true after Get, provided the new content is large enough. This should help the common situation of plumbing a compiler error, realizing the window is out of date, clicking Get, and then losing the positioning from the plumb operation.
2017-10-10acme: check file content before declaring file "modified since last read"Russ Cox1-1/+12
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.)
2017-07-16acme: implement Cmd-Shift-Z for Redo on MacRuss Cox1-0/+4
Change-Id: Ie9332ed473609bd6ca156be0843dc5411cbf7b93 Reviewed-on: https://plan9port-review.googlesource.com/2941 Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02libdraw, libframe, acme: fix, guard against inverted range in textsetselectRuss Cox1-3/+9
Credit to Roi Martin <jroi.martin@gmail.com> for noticing that libdraw was being passed a negative string length and for finding the sequence of keystrokes that make acme do it reproducibly. Change-Id: If3f3d04a25c506175f740d3e887d5d83b5cd1bfe Reviewed-on: https://plan9port-review.googlesource.com/1092 Reviewed-by: Russ Cox <rsc@swtch.com>
2014-06-03acme: fix bufread crash due to typing-point scrollingRuss Cox1-0/+4
Acme tracks the most recent typing insertion point and the home and end keys stop there on their way up to the top or down to the bottom of the file. That point should be iq1, and it should be adjusted properly so that it's always between 0 and t->file->b.nc inclusive. (This is all code from an external contributor, years old at this point but new since Plan 9.) Somehow, sometimes iq1 ends up a little beyond b.nc, and when passed to textbacknl it crashes acme in bufread. I can't see how that can happen but if it does, avoid the crash. It's tempting to pull the insertion point code out entirely but this is a little less invasive and should fix things for now. TBR=rsc https://codereview.appspot.com/107730043
2014-05-19undo CL 69070045 / 8539a916d98aRuss Cox1-4/+0
This breaks ^C in win windows, as expected. People use ^C, win expects and handles ^C, so I don't think we can just take it away. I've noticed that it is broken but assumed my ssh was screwed up. If you want to make WindowsKey+C,X,V do the operations, by analogy with command+C,X,V on Mac, that's fine with me. ««« original CL description acme: copy/cut/paste with ctl+c,x,v LGTM=rsc R=rsc CC=plan9port.codebot https://codereview.appspot.com/69070045 »»» TBR=rsc CC=burns.ethan, r https://codereview.appspot.com/96410045
2014-04-18acme: fix Get of dir in nameless window (thanks Colton Lewis)Russ Cox1-1/+1
TBR=r https://codereview.appspot.com/89390043
2014-03-13acme: copy/cut/paste with ctl+c,x,vEthan Burns1-0/+4
LGTM=rsc R=rsc CC=plan9port.codebot https://codereview.appspot.com/69070045
2013-10-22acme: scroll a directory window when navigating if:Rob Pike1-1/+17
- the cursor is on the last line - the navigation would put the cursor over the tag of the following text R=rsc CC=smckean83 https://codereview.appspot.com/15280045
2011-11-17acme: fix arrow near end of textSean McKean1-6/+4
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5399050
2011-09-06devdraw: draft cocoa supportDavid Jeannot1-0/+4
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4974060
2011-08-02acme: fix iq1 adjust bugRuss Cox1-1/+1
R=rsc http://codereview.appspot.com/4816066
2011-08-02acme: scrolling fixes + new home/endRuss Cox1-2/+19
Home and End previously navigated between two different window locations: the top and the bottom of the text. Now they include a third waypoint: the location where typing last happened. Thus, in a win window, typing ls -l <home> scrolls to the beginning of the ls -l output. A second <home> continues to the top of the file. Makes Send scroll always, along with writes by external programs to +Errors. R=r CC=mccoyst http://codereview.appspot.com/4830051
2009-09-25acme: correct modified message after initial load; more detail inRuss Cox1-5/+5
message http://codereview.appspot.com/123051
2009-09-11acme: htmlclick takes precedence over line clickRuss Cox1-3/+3
http://codereview.appspot.com/116074
2009-07-26acme: angle bracket tag matching, for XML, HTML etcRuss Cox1-0/+110
http://codereview.appspot.com/98042
2009-07-15acme: do not redraw body on every tag changeRuss Cox1-2/+3
fixes #5 http://bitbucket.org/rsc/plan9port/issue/5/ http://groups.google.com/group/plan9port-dev/t/e679347ecaa05cff http://codereview.appspot.com/95041
2009-04-30mergeRuss Cox1-0/+26
2008-03-07acme: revise multiline tag codeRuss Cox1-27/+4
2008-03-07acme: fix directory resize bugRuss Cox1-1/+4
2008-04-17acme: add -m option and avoid looking in the mirrorRuss Cox1-0/+4
2007-05-10better tick handlingrsc1-5/+14
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-1/+1
2006-02-08fix b1 c2 c3 c3 c2 c3 [sic]rsc1-12/+13
2006-02-06add chord fix from plan 9rsc1-6/+6
2006-01-12more tweaksrsc1-0/+10
2005-12-16add bigtagsrsc1-1/+52
2005-10-31Cleanup in preparation for multiline tags.rsc1-10/+13
2005-03-18use typecommit; use nil in place of 0 againrsc1-7/+3
2005-03-18month old bug fix from robrsc1-15/+29
2004-12-27dumb porting bugsrsc1-2/+2
2004-12-27changes from plan 9rsc1-2/+9
2004-10-17bug fix in Zerox arrow handling from robrsc1-2/+2
2004-06-20unused variablersc1-1/+0
2004-06-20fix scrollingrsc1-4/+5
2004-06-11scrollingrsc1-2/+4
2004-06-09Buttons 4 and 5.rsc1-2/+6
2004-05-14various bug fixesrsc1-1/+4
2004-04-16add rog's chording fix.rsc1-7/+7
2004-04-08Let's try this - Dotfiles toggles listing of .* in directory listings.rsc1-0/+2
2004-03-26.rsc1-1/+1
2004-03-26SunOS can rot in hell.rsc1-1/+1
2004-03-25Today's changes.rsc1-1/+1
More changes.
2004-02-29Fighting the good fight.rsc1-7/+43
Move libfmt, libutf into subdirectories of lib9. Add poll-based socket i/o to libthread, so that we can avoid using multiple procs when possible, thus removing dependence on crappy pthreads implementations. Convert samterm, acme to the single-proc libthread. Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution.
2004-02-09completion, pageup/pagedownrsc1-6/+130
2003-12-11More files related to user-level file servers.rsc1-0/+1221
Also add acme!