This fixes#1668, because the crashing listbox rendering code uses "len(line) >
0" (where line is a ui.Text) to test whether it is non-empty. This test doesn't
work with the ui.Text constructed using "styled ''", which creates a ui.Text
with one empty segment.
The functions from the ui package are guaranteed to never return such ui.Text
instances, so switching the implementation of the styled builtin to functions
from the ui package fixes this.
The 0.19.0 version was tagged by mistake but has already been picked up by some
package managers. To avoid disrupting them, skip this version number and use
0.19.1.
This gives the user some useful feedback that a key was received but not bound.
The feature was present in the original implementation of the line editor but
was lost during the rewrite.
In a recent run the OpenBSD runner ran out of disk space:
https://cirrus-ci.com/build/4961751523917824. Looking at the details of these
tasks, uncompressing the caches takes a pretty long time, so the caching
probably doesn't make the builds much faster anyway.
* Correct slice indexing convention in code comment
A colon is not supported.
* Add more key slices tests
* Unify `has-key` tests with those from `pkg/eval/vals/has_key_test.go`
* Fix key slice format in documentation
Fixes#1646.
* Fix missing bracket
* Fix indexing
* Add more key slices `has-key` tests
* Fix `has-key` test expected value
Elvish used to allow the `foo=bar cmd` syntax similar to other shells. This has changed and as it is a common motif I thought it would be good to mention it in the elvish<->bash comparison table (at least me as a generic end-user often goes there to work out how to do things). I added both the `{ tmp ... }` option and also using `env` command as a shortcut, although I know this is not strictly "elvish" syntax...
I also thought that as environment variable are often important for many shell tasks, expanding the Setting variables section to detail the use of builtins like `set-env` or the `E:` namespace will help new users orient themselves.