Commits
- Commit:
b9424f640a0493359fd2af7c670c5a4ced334e6b
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
plumber: fix EOF detection on writes to rules file (#257)
Instead of checking Fcall.data==nil, check Fcall.count==0.
The former check always fails after `gcc -O2` optimizations
(gcc version 8.3.0).
Also fix an out-of-bound read detected by valgrind:
```
==31162== Invalid read of size 1
==31162== at 0x11005E: morerules (rules.c:739)
==31162== by 0x110254: writerules (rules.c:775)
==31162== by 0x10D2FE: fsyswrite (fsys.c:848)
==31162== by 0x10C304: fsysproc (fsys.c:248)
==31162== by 0x112E8C: threadstart (thread.c:96)
==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so)
==31162== Address 0x4ea984a is 0 bytes after a block of size 250 alloc'd
==31162== at 0x483AD7B: realloc (vg_replace_malloc.c:826)
==31162== by 0x1196F3: p9realloc (malloc.c:53)
==31162== by 0x10BDFD: erealloc (plumber.c:124)
==31162== by 0x10FCD9: concat (rules.c:642)
==31162== by 0x10FCD9: concat (rules.c:635)
==31162== by 0x110230: writerules (rules.c:773)
==31162== by 0x10D2FE: fsyswrite (fsys.c:848)
==31162== by 0x10C304: fsysproc (fsys.c:248)
==31162== by 0x112E8C: threadstart (thread.c:96)
==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so)
```
Fixes #256
- Commit:
7d827b5cca185b411be3ac9b71834958f4737bdf
- From:
- Zach Scott <ethhics@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
auxstats: replace /proc ACPI calls with /sys ones (#245)
According to <https://askubuntu.com/a/309146>, use of `/proc/acpi` to
get battery usage is deprecated. This commit replaces the two files from
this API with the single file `/sys/class/power_supply/BAT0/capacity`,
simultaneously removing the need to calculate battery percentage.
- Commit:
e995a0c101863688d5f14649ae3de45a7c43789c
- From:
- Xiao-Yong <xjin@anl.gov>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: cocoa metal screen adds a delayed update (#270)
The immediate display of the screen sometimes miss the update from
the CPU side memory. No obvious synchronization mechanism is available.
In order to make sure the screen updates properly, we set needsDisplay
again after 16ms delay to ensure a second screen update.
- Commit:
d4e16c838ab2cccd97ad6e24fc290239666eaaac
- From:
- Pocket7878 <poketo7878@gmail.com>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: handle windowDidResize on macOS (#212)
This supports non-live window resize.
- Commit:
7a241631b2097b1acda431ff059b771c5d1c391c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme: accept expanded URLs in look
Just as look expands a click in /etc/passwd to the full name
(provided that file exists), it now expands a click in https://9fans.net/
to the full URL (provided the prefix is http:// or https://).
Probably more adjustment is needed.
- Commit:
161742770e63fec914b0290def3ac063ad3d2cf9
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme: delete trailing spaces during Put in autoindent mode
Autoident mode is the leading cause of trailing spaces on lines.
Remove them during Put to make various picky tools happier.
The changes during Put are added as a separate entry to the
file history, so that the first Undo after Put restores the spaces.
- Commit:
cc9ecfbee7b1c346bd6b35bf1b9501bdf7eb9c21
- From:
- Xiao-Yong <xjin@anl.gov>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: cocoa metal screen updates (#215)
* devdraw: cocoa metal screen uses a dirty hack to make everything smooth
* devdraw: cocoa metal screen uses a layer to make fullscreen applications behave
* devdraw: macOS cocoa metal fix resizeimg without img
* devdraw: macOS cocoa metal uses blit instead of render
We directly use the blit command encoder to copy texture to the
framebuffer. We no longer need to compile the metal shader every
time the application starts just for rendering a flat 2D surface.
* travis: add osx images covering 10.13 and 10.14
- Commit:
3197719090b3fd0a038767f7e8e15e771b1515be
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme: do not trim spaces during Put
The commit that introduced this was pushed accidentally.
It is not a good idea to do this.
(It breaks programs that think that a clean window
means the body matches the on-disk file.)
- Commit:
9179fdaaf4fb5748832b2162d35a515133bad0f5
- From:
- Pocket7878 <poketo7878@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
samterm: stop ignoring all keys >= Kcmd
- Commit:
317c3cdb76806629e8c2710b7fb9a69cc3e46867
- From:
- Xiao-Yong <jinxiaoyong@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
devdraw: stop redirecting ^H in cocoa-metal (#209)
- Commit:
5517aa034025214e43fff6760140d3089d3baf80
- From:
- Noah Evans <npe9@users.noreply.github.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
man/memdraw.3: fix typo
- Commit:
7bb69ba88b8083b3eb9b3afefd8cdeae6aea2149
- From:
- Fazlul Shahriar <fshahriar@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
libdraw,devdraw: fix compatibility with old 16x16 cursor protocol (#217)
Some libraries that depend on devdraw don't know about
32x32 cursor -- mainly 9fans.net/go/draw.
- Commit:
61601587295f6d0ef1c4084530fe0318e0c72b16
- From:
- Chris Schultz <christopher.schultz@auth0.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
devdraw: prefer low-power GPU for macOS metal rendering (#231)
- Commit:
26c6b2579543e928158fa7d3c00d8b0e04ac270c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
devdraw: avoid deadlock on pre-Mojave macOS
- Commit:
dc60de7b64948e89832f03181e6db799060036b8
- From:
- Travis snɯǝᗡɔW <aoeu@users.noreply.github.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
fortunes: correct a mispelling (#234)