Commits
- 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
- Commit:
edfe3c016fe6ef10c55f7a17aab668214ec21efc
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
sam: freetmpstr instead of free
- Commit:
dc2a17b95cace1f220292cb6df97ee423d6be229
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
libdraw: fix some memory leaks in font handling
- Commit:
a3ec102dc7fee3d4ecb32ade5ec9d7de4b9b4304
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
fontsrv: fix some memory leaks
- Commit:
b2f67698309b0c573cd52e357be126171be0a93a
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
devdraw: fix some memory leaks in x11
- Commit:
7ca1c90109e17dced4b38fbaadea9d2cf39871b7
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
acme: fix some memory leaks
- Commit:
96dc2330918909c925a5c3a6407116dad7f93c3a
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
fontsrv: enlarge drawing buffer for subfonts on macOS
Double the width returned by CTFontGetBoundingBox when drawing.
Add box drawing characters for determining the line height.
Call freememimage(1) for the character memimage.
Fixes #18.
Fixes #120.
Fixes #146.
- Commit:
a5b24c22a865f2ea3ee389b9d0a235bf7d93f5a6
- From:
- Xiao-Yong Jin <xjin@anl.gov>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
mount, 9pfuse: detect macports installed osxfuse
MacPorts installs osxfuse under /opt/local.
- Commit:
4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6
- From:
- Mechiel Lukkien <mechiel@ueber.net>
- Via:
- David du Colombier <0intro@gmail.com>
- Date:
fontsrv: skip only the surrogate pairs
fontsrv wasn't rendering fontawesome icons,
which uses the private use area around 0xf000.