Commits
- Commit:
2ba6fa9a65c82088cde14aa56740d0eea9e38628
- From:
- Russ Cox <rsc@swtch.com>
- Date:
web: allow any $BROWSER
Fixes #118.
- Commit:
ed959cfba326356a5cdea1a12c8ac17b5365486c
- From:
- iru- <iru.muzgo@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
fontsrv: increase x11 font height scale (#111)
- Commit:
f3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808
- From:
- KADOTA, Kyohei <lufia@users.noreply.github.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
9term.app: add $PLAN9/bin to $PATH if not already in $PATH (#144)
9term set $PLAN9 if PLAN9 is not set. But $PATH is not set.
As a result, 9term exits with "exec devdraw: No such file or directory"
- Commit:
73ea36569e83560168cfd7e40d85d9d247bce593
- From:
- Martin Kühl <martin.kuehl@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
plumb/basic: avoid wrap around in file:1:2 (#158)
Fixes #122, #140.
As reported in #122, `file:1:1` moves to the end of the file,
and `file:1:2` fails with “address out of range”.
I’ll use file:2:3 as an example so we can tell the line and column number apart.
What’s happening is this:
plumb/basic matches `2:3` using twocolonaddr (from plumb/fileaddr),
then sets addr to `2-#1+#3`
(the 1 is constant and was introduced because column numbers are 1-based).
Acme interprets this in three steps:
1. find the range (q0, q1) that contains line 2
2. create the range (q2, q2) where q2 = q0 - 1
3. create the range (q3, q3) where q3 = q2 + 3
The second step has a branch where if q0 == 0 and 1 > 0
(remember that 1 is constant and comes form plumb/basic),
q0 is set to the end of the file.
This makes addressing things at the end of the file easier.
The problem then is that if we select line 1,
which starts at the beginning of the file,
q0 is always 0 and the branch in step 2) will always be used.
`1:1` is interpreted as `1-#1+#1` which starts at 0, wraps around to the end of the file, then moves 1 character backwards and then forwards again, ending at the end of the file.
`1:2` is interpretes as `1-#1+#2` which starts at 0, wraps around to the end od the file, then moves 1 character backwards and tries moving 2 characters forwards beyond the end of the file, resulting in the out of range error.
In #140 @rsc proposed transforming `:X:Y` into `:X-#0+#Y-#1` instead since that
avoids wrapping around by not moving backwards at first.
This change modifies `plumb/basic` to do that.
- Commit:
a9e66ffa4eb61a4728d536d20f916a5a02ab5626
- From:
- Xiao-Yong <jinxiaoyong@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
devdraw: make ctrl generate 1-click while mouse down (#119)
This makes 2-1 chords possible with touchpad on a mac laptop.
- Commit:
931c5906118e4db3419bfb4dced833902eb14139
- From:
- thisrod <thisrod@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
keyboard: add compose sequences lc and rc for ceiling brackets (#126)
Change-Id: Ice1c8c9d15cc6febf32dc2b7c449d457acc319b6
- Commit:
c38ae2afb5b000400d7e9979fd5bb043b9819d07
- From:
- Martin Kühl <martin.kuehl@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
keyboard: add tab/untab symbols (#160)
- Commit:
c82e11b24e7a6aa03473111367cb792ce0537f61
- From:
- Xiao-Yong <jinxiaoyong@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
fontsrv: x11 uses FC_POSTSCRIPT_NAME (#174)
This makes fontsrv use the PostScript font names on X11.
The PostScript font names contains only alphanumeric and
hyphens. This allows us to use the Font command in acme.
It also matches the font names used by fontsrv on macOS,
which has been using PostScript font names.
- Commit:
76b9347a5fa3a0970527c6ee1b97ef1c714f636b
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
acme: avoid division by zero when resizing col (#189)
To reproduce, create a column with at least two windows and resize
acme to have almost zero height.
- Commit:
2419c9343827a679353a8c0a44fd6e0e3e631a3c
- From:
- Xiao-Yong <jinxiaoyong@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
fontsrv: disable font smoothing on osx (#196)
macOS Mojave version 10.14 starts to disable font smoothing.
We disable font smoothing for OSX_VERSION >= 101400 to match the
system default font rendering.
It also makes the font rendering on macOS similar to that on X11.
- Commit:
014fd65a5ca780823c0e75787f193d3c6597de8f
- From:
- Xiao-Yong <jinxiaoyong@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
9term: fix getpts on FreeBSD 11.2 (#199)
Opening /dev/ptyXX files fails on recent
FreeBSD versions.
Following the same fix being applied to
Linux, OpenBSD, and Darwin, we use openpty
to open a pseudoterminal in openpts.
- Commit:
13ed1c423ecbd45d2ca982f2a7a433b785873629
- From:
- Russ Cox <rsc@swtch.com>
- Date:
9l: drop xcode text-based stub warning
- Commit:
82abcd6fd693549b225e53c6c161ea3909f2cf00
- From:
- Russ Cox <rsc@swtch.com>
- Date:
plumb: allow @ in file names
Helps Go module download cache, Upspin, maybe others.
- Commit:
48da9bd71ddae0c51f8aff4c0d6806a8e32c4e23
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
fontsrv: copy some fixes from OS X to X11
* Avoid allocating empty images by adding 1 to width/height. This was
crashing fontsrv. The total width of the subfont image can be zero
even if the characters are present in the font. For example, all the
characters in x0300.bit (part of "Combining Diacritical Marks" Unicode
block) have zero width.
* Make sure U+0000 is always present in the font, otherwise libdraw
complains with: "stringwidth: bad character set for rune 0x0000 in ..."
* Use the same fallback glyph (pjw face) as OS X. This also fixes a bug
where advance was set to the total width of subfont instead of the
character.
Update #125 (most likely fixes the crash if in X11)
Change-Id: Icdc2b641b8b0c08644569006e91cf613b4d5477f
- Commit:
db27122d3942ebec4471c260403d87cdd6541add
- From:
- Charles Collicutt <charles@collicutt.co.uk>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
upas/nfs: correctly quote IMAP LOGIN arguments
According to RFC 3501 the arguments to the LOGIN command should be
quoted strings (or length prefixed string literals). Without quoting,
authentication to some IMAP servers (e.g. Dovecot) will fail.