Jōshin
e16a7d8f3b
flip et / noet in modelines
...
`et` means `expandtab`.
```sh
rg 'vi: .* :vi' -l -0 | \
xargs -0 sed -i '' 's/vi: \(.*\) et\(.*\) :vi/vi: \1 xoet\2:vi/'
rg 'vi: .* :vi' -l -0 | \
xargs -0 sed -i '' 's/vi: \(.*\)noet\(.*\):vi/vi: \1et\2 :vi/'
rg 'vi: .* :vi' -l -0 | \
xargs -0 sed -i '' 's/vi: \(.*\)xoet\(.*\):vi/vi: \1noet\2:vi/'
```
2023-12-07 22:17:11 -05:00
Jōshin
394d998315
Fix vi modelines ( #989 )
...
At least in neovim, `│vi:` is not recognized as a modeline because it
has no preceding whitespace. After fixing this, opening a file yields
an error because `net` is not an option. (`noet`, however, is.)
2023-12-05 14:37:54 -08:00
Justine Tunney
c776a32f75
Replace COSMO define with _COSMO_SOURCE
...
This change might cause ABI breakages for /opt/cosmos. It's needed to
help us better conform to header declaration practices.
2023-08-13 20:55:04 -07:00
Justine Tunney
04d39d47f1
Fix basename() and dirname()
2022-04-06 00:13:44 -07:00
Justine Tunney
579b597ded
Refactor out some duplicated code
2021-08-14 06:17:56 -07:00