plan9fox/sys/src/cmd/rio
Igor Böhm 876907a530 rio: fix parsing of directory path (-cd) when creating a new window via wctl
Before applying this patch the following will fail to open ed
in the '/tmp/s p a c e' folder:

<snip>
% mkdir '/tmp/s p a c e'
% window -cd '/tmp/s p a c e' ed
!pwd
/tmp/s p a c e
!
q
<snap>

After applying the patch the above sequence works as expected,
opening ed in the '/tmp/s p a c e' folder, printing the present
working directory, and quitting ed.

The root cause was a faulty computation of the pointer `s`,
being off by one, leading to any arguments after the
directory path to be skipped.

This regression was introduced in revision:
• 614f1d6268

Thanks umbraticus for finding and reporting the issue.
2022-02-09 00:11:44 +00:00
..
dat.h rio: make window focus changes deterministic, cleanup wind.c 2021-03-07 20:26:30 +01:00
data.c rio: match background screen color format (thanks noam) 2021-06-06 22:44:36 +00:00
fns.h triple click selection in rio 2020-04-25 08:58:24 -07:00
fsys.c rio: simplify filsysinit() by using getuser(), format pid's as ulongs 2020-12-07 14:22:30 +01:00
mkfile
rio.c rio: make window focus changes deterministic, cleanup wind.c 2021-03-07 20:26:30 +01:00
scrl.c rio: flushimage() before wscrsleep() 2016-03-23 20:17:58 +01:00
time.c
util.c triple click selection in rio 2020-04-25 08:58:24 -07:00
wctl.c rio: fix parsing of directory path (-cd) when creating a new window via wctl 2022-02-09 00:11:44 +00:00
wind.c rio: avoid re-triggering clicks on resize/hide/unhide and send wctl when focus is lost 2021-04-25 12:41:20 +02:00
xfid.c rio: avoid redrawing window text on resize for programs using libdraw 2020-11-29 17:51:57 +01:00