aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-10-23samterm: Add sendcmd for arbitrary input in the command window.Petter Rodhelind1-0/+42
2017-10-22acme: Move one line up/down using ^P and ^N.Petter Rodhelind1-32/+42
2017-10-16acme: Hide dotfiles in dirs.Petter Rodhelind1-0/+3
These can easily be shown in a win-window with 'ls -a'...
2017-10-16Merge remote-tracking branch 'upstream/master'Petter Rodhelind27-23/+98
2017-10-14acme: free buf in checksha1Russ Cox1-0/+1
Thanks to Lorenzo Beretta for noticing.
2017-10-139term: fix getpts on macOS 10.13David du Colombier1-0/+16
Since macOS 10.13, opening the /dev/ptyXX files always return ENOENT. Consequently, we changed getpts to use openpty to open a pseudoterminal, like on Linux and OpenBSD. Fixes #90. Fixes #110.
2017-10-13upas/nfs: fix warningsDavid du Colombier3-10/+2
decode.c:146:8: warning: variable ‘argv’ set but not used fs.c:953:47: warning: variable ‘reset’ set but not used imap.c:348:6: warning: variable ‘prefix’ set but not used Updates #114.
2017-10-10acme: check file content before declaring file "modified since last read"Russ Cox23-13/+79
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-10-09Merge remote-tracking branch 'upstream/master'Petter Rodhelind2-40/+113
2017-10-09devdraw: fix build on macOS < 10.12Rudá Moura1-0/+2
After making the build on macOS silent on commit 310ae03, the build was broken on macOS lesser than 10.12 (Sierra). This commit conditionally checks the version the of the SDK before using the defined values for silent build. Fixes #66.
2017-10-01xd: add -R for runewise dumpLeah Neukirchen1-40/+111
Ported from Plan 9 2013-05-21. https://github.com/0intro/plan9/commit/b377a116d132865c011a3fb3ea76528ffd32963f Closes #16.
2017-09-28Merge remote-tracking branch 'upstream/master'Petter Rodhelind28-68/+23
2017-09-14all: remove .cvsignore filesKare Nuorteva22-62/+0
Rename following .cvsignore files to .gitkeep since they are required by the build (directories must exist before build): - bin/fossil/.gitkeep - bin/fs/.gitkeep - bin/venti/.gitkeep Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0
2017-09-01lib9: import frand function from Plan 9David du Colombier2-0/+18
Fixes #15.
2017-09-01svgpic: fix warningsDavid du Colombier1-3/+1
plsvg.c:291:21: warning: variable ‘y2’ set but not used plsvg.c:291:17: warning: variable ‘x2’ set but not used
2017-09-01libmach: initialize ss variable in stabsline2pc functionDavid du Colombier1-1/+2
Fixes #58.
2017-09-01all: update site from swtch.com to 9fans.github.ioRuss Cox1-1/+1
2017-09-01ed: allow larger temp filesRuss Cox1-1/+1
Requested by rob.
2017-08-03acme: Use the same tabstop setting in cloned/zerox window as in the source ↵Petter Rodhelind1-0/+1
window.
2017-08-03devdraw: Use old fullscreen.Petter Rodhelind1-1/+1
This makes it a lot easier to do keyboard shortcut fast switching between virtual desktops.
2017-08-01Merge remote-tracking branch 'upstream/master'Petter Rodhelind3-3/+8
2017-07-23venti: fix venti graph on 64-bitMichael Stroucken1-1/+1
A pixel is 32 bits wide in RGBA, regardless of system's word size. Change-Id: Iea36a8dafdec9ce8d593f944ef5ed1ea08e11d25 Reviewed-on: https://plan9port-review.googlesource.com/2980 Reviewed-by: David du Colombier <0intro@gmail.com>
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>
2017-07-16devdraw: fix Mac Kcmd+ShiftRuss Cox1-0/+3
Change-Id: Ide32a9397701085b17fbd42f0866eb3de11e4190 Reviewed-on: https://plan9port-review.googlesource.com/2940 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-07-03Merge remote-tracking branch 'upstream/master'Petter Rodhelind20-6/+4039
2017-06-19fontsrv: avoid quote mapping on fonts with indistinguishable quotesRuss Cox1-5/+19
Fixes #86. Change-Id: Id487219a0fcfdb68133fc81b11383365a1431c1c Reviewed-on: https://plan9port-review.googlesource.com/2922 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-06-19lib9: fix needsrcquoteRuss Cox1-1/+1
As written, it is passing a rune to strchr, which likely ignores all but the bottom 8 bits of the rune. Long-standing Plan 9 bug too. Fixes #87. Change-Id: I6a833373b308bed8760d6989972c7f77b4ef3838 Reviewed-on: https://plan9port-review.googlesource.com/2921 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-06-19svgpic: new program to convert pic to svgRuss Cox18-0/+4019
This is an experiment. Like tpic it's a copy-and-paste fork of pic. Change-Id: Ia22772bd5881c7904a6d8f8e0b46fde8cea89cbd Reviewed-on: https://plan9port-review.googlesource.com/2920 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-05-24Merge remote-tracking branch 'upstream/master'Petter Rodhelind2-2/+3
2017-05-24Syntax cleanupPetter Rodhelind1-8/+7
...and the use of TRUE/FALSE instead of 1/0 for explicicy
2017-05-24Fix segfault when TAB in other places than body textPetter Rodhelind1-0/+2
2017-05-11Copy tabexpand setting when cloningPetter Rodhelind1-0/+1
2017-05-11Disable tab expansion as defaultPetter Rodhelind1-1/+1
2017-05-11Switch tab expansion ON/OFF via TabexpandPetter Rodhelind1-1/+8
2017-05-11Add support for tab expansion (because everyone else is stupid and I am ↵Petter Rodhelind4-0/+29
forced to follow along) Tab expansion inserts spaces instead of TAB character. Number of spaces is dependent upon your current tab stop setting, which can be changed by running "Tab n". As of now, it's not possible to turn it on and off during runtime. You can however see whether it's compiled or not by executing the command "Tabexpand". The console will show either 1 or 0. This will be taken care of in a later commit.
2017-05-05factotum: Fix an operator precedence bug in the secstore codeDan Cross1-1/+1
`==` is higher precedence than `&`. Parenthesize. Change-Id: I2c7ee588fea0d8a66e1c8424f26630015388d61a Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2860 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
2017-04-21yacc: Fix a bug from at least 1995.Dan Cross1-1/+2
Fix a bug folding newlines in strings constants in C code snippets in YACC. This code has existed since at least 2nd Edition Plan 9. Change-Id: Iba17b89a6529ac9fa6610bf0b44f551904174c26 Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2840 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-04-20Add ^A and ^E wrap arounds for easy movement over multiple linesPetter Rodhelind1-0/+11
2017-04-20Merge remote-tracking branch 'upstream/master'Petter Rodhelind2-4/+2
2017-04-08libdraw: replace hand-rolled realloc, preventing buffer overflow.Ray Lai1-3/+1
The original buffer is f->nsubf*sizeof *subf bytes (oldsize) large. Once it's full, a new buffer of (f->nsubf+DSUBF)*sizeof *subf (newsize) is mallocated. Unfortunately memmove() reads (newsize) bytes from the original (oldsize) buffer, causing a buffer overflow. By switching to realloc(), we don't need to do buffer size calculation, memmoving, and freeing of the original buffer. Change-Id: Ibf85bc06abe1c8275b11acb1d7d346a14291d2cd Reviewed-on: https://plan9port-review.googlesource.com/1520 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
2017-04-089term: Add missing parentheses, preventing buffer overflow.Ray Lai1-1/+1
(el-sr) is the string length and (sizeof wdir - strlen(name) - 20) is the buffer size. When the string length is greater than the buffer size, the beginning of the string is supposed to be trimmed to fit in the buffer size. Unfortunately a pair of parentheses were missing, pointing sr outside the buffer, and the for loop below then reads outside the buffer. For certain binary data printed in a window, it causes a segfault. Change-Id: Iffeaa348260ee2a5a36d9577308fb8d1c1688d05 Reviewed-on: https://plan9port-review.googlesource.com/1540 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
2017-03-19Add Cmd+S for save/putPetter Rodhelind1-0/+5
2017-03-18Fix kdown when last line is emptyPetter Rodhelind1-1/+1
2017-03-18Fix key down buffer overflow bug at EOFPetter Rodhelind1-3/+3
2017-03-18Make Key-Up and Key-Down work with lines instead of scrollingPetter Rodhelind1-8/+33
2017-03-17Make ctrl act as a button 1 for mouse chordsPetter Rodhelind1-0/+2
2017-02-109pfuse: support osxfuse>=3.3.0James Porter1-7/+28
Change-Id: Ibca68261016b0f588e169e9f319748b5ba7d15ac Reviewed-on: https://plan9port-review.googlesource.com/2700 Reviewed-by: michaelian ennis <michaelian.ennis@gmail.com> Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-099term: c nitsRuss Cox2-2/+3
Change-Id: Ia18ebb28f24bc69f404004896f9ce54ddb53faf9 Reviewed-on: https://plan9port-review.googlesource.com/2782 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-09cmd/9term: A hack because I'm constantly getting confused about ^C vs fn+deleteDave Presotto3-0/+11
Since Google (and a lot of the outside) is so engrained with using ^C as interrupt, I'd like to be able to use it in 9term if I've stty'd my intr to ^C. Without this, hitting ^C still works but if the program behind the window isn't reading from /dev/cons, it won't take effect till after I hit a newline which is often very confusing. I know this is a hack since it only works if I stty intr ^C but that seems the only other character that gets used anyways. Change-Id: I0597e63b2d7628f5668c648e6dba6f281e4b27fd Reviewed-on: https://plan9port-review.googlesource.com/2742 Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-07src/cmd: take fontsrv out of BUGGEREDDave Presotto1-1/+1
Change-Id: Iac5726f13039fba818536dc375d38cc3e27aca3a Reviewed-on: https://plan9port-review.googlesource.com/2741 Reviewed-by: Russ Cox <rsc@swtch.com>