elvish/pkg/ui
Kurtis Rader d52aa03764 In prompts implicitly coerce float64 to string
Including the float64 data type in the prompt value stream causes an error.
This causes those values to be implicitly converted to a string as happens
everywhere else in Elvish.

I initially intended to modify the code to do the implicit string coercion
for any type not otherwise explicitly handled by the pkg/ui `Concat`
methods. I decided against that approach because doing so doesn't make
sense for some types that might appear in the value stream; e.g., Elvish
exceptions.

Fixes #1186
2020-12-25 17:34:49 +00:00
..
color_test.go pkg/ui: Test color.go. 2020-04-01 00:37:09 +01:00
color.go pkg/ui: Rearrange files. 2020-03-31 23:11:59 +01:00
key_test.go Apply feedback for PR #1181. 2020-12-25 01:13:19 +00:00
key.go Address feedback in PR #1177. 2020-12-25 00:44:26 +00:00
parse_sgr_test.go pkg/ui: Do not strip unprintable characters from the prompt. 2020-08-28 22:00:40 +01:00
parse_sgr.go pkg/ui: Do not strip unprintable characters from the prompt. 2020-08-28 22:00:40 +01:00
style_test.go pkg/ui: Implement StyleFromSGR in terms of a new StylingFromSGR. 2020-08-25 21:17:14 +01:00
style.go pkg/ui: Implement StyleFromSGR in terms of a new StylingFromSGR. 2020-08-25 21:17:14 +01:00
styling_test.go pkg/ui: Add more tests. 2020-04-01 22:39:46 +01:00
styling.go pkg/ui: Implement StyleFromSGR in terms of a new StylingFromSGR. 2020-08-25 21:17:14 +01:00
text_segment_test.go pkg/ui: Add bare-bone tests for text_segment.go. 2020-04-04 01:32:13 +01:00
text_segment.go In prompts implicitly coerce float64 to string 2020-12-25 17:34:49 +00:00
text_test.go Fix typos found by codespell 2020-10-10 22:47:50 +01:00
text_util_test.go pkg/ui: Add a Concat function for concatenating multiple Text's. 2020-08-25 22:34:19 +01:00
text_util.go pkg/ui: Add a Concat function for concatenating multiple Text's. 2020-08-25 22:34:19 +01:00
text.go In prompts implicitly coerce float64 to string 2020-12-25 17:34:49 +00:00
ui.go Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00