Commits
- 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.
- Commit:
93c75d2bad341af383520409fd354dcff3f2c279
- From:
- David du Colombier <0intro@gmail.com>
- Date:
grep: update from Plan 9
This change fixes a segfault in grep -e when no argument
has been provided. Thanks to Sean Hinchee for reporting
this issue.
Fixes #186.
- Commit:
de3b6d5848d5361490ed049154985d01dd5068f9
- From:
- David du Colombier <0intro@gmail.com>
- Date:
libregexp: include stddef.h in lib9.std.h
Commit 2d82ef9d98 added ptrdiff_t in regcomp.c.
However, this change broke the build of the Unix
package because ptrdiff_t is defined in stddef.h.
- Commit:
a82a8b6368274d77d42f526e379b74e79c137e26
- From:
- Martin Kühl <martin.kuehl@gmail.com>
- Via:
- Rob Pike <r@golang.org>
- Date:
acme: Apply each -/+ only once (#156)
When plumbing an address like `3-`, Acme selects line 1,
and similarly `3+` selects line 5.
The same problem can be observed for character addresses (`#123+`)
but _not_ for ones like `+`, `.+` or `/foo/+`:
The problem only occurs when a number is followed by a direction (`-`/`+`).
Following along with the example `3-` through `address` (in addr.c):
We read `3` into `c` and match the `case` on line 239.
The `while` loop on line 242ff reads additional digits into `c`
and puts the first non-digit back by decrementing the index `q`.
Then we find the range for line 3 on line 251 and continue.
On the next iteration, we set `prevc` to the last `c`,
but since that part read ahead _into `c`_,
`c` is currently the _next_ character we will read, `-`,
and now `prevc` is too.
Then in the case block (line 210) the condition on line 211 holds
and Acme believes that it has read two `-` in sequence
and modifies the range to account for the “first” `-`.
The “second” `-` gets applied after the loop is done, on line 292.
So the general problem is:
While reading numbers, Acme reads the next character after the number into `c`.
It decrements the counter to ensure it will read it again on the next iteration,
but it still uses it to update `prevc`.
This change solves the problem by reading digits into `nc` instead.
This variable is used to similar effect in the block for directions (line 212)
and fills the role of “local `c` that we can safely use to read ahead” nicely.
- Commit:
df2d9ec9d169626cdc2a23829bb2831738215722
- From:
- Igor Burago <ib@iburago.org>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
fontsrv: omit box-drawing characters from line struts on macOS
For some fonts, using box-drawing characters in the representative
text for computing the line height results in it being uncomfortably
high. Replace them with accented capitals and tall lower-case letters
which lead to a more conservative increase in the line height.
Fixes #162.
- Commit:
03a8ec739af17bc4ba0a2e18ea59b33671c34f2b
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
libdraw: fix error in the previous commit
- Commit:
96025b1ec8916c986fb691db79ae96d4f690c8f1
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
mc: fix crash in acme with hidpi display
- Commit:
75ea8515a5cd26817b4eb5de99eeb6934def9328
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
samterm: free some getenv results