mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 04:15:08 +02:00
Fix typos and capitalization of "Unicode" (#3234)
* Capitalize "Unicode" * Fix several typos * Fix mixed whitespace in nu-parser's tests
This commit is contained in:
@ -62,7 +62,7 @@ pub fn split_sublines(input: &str) -> Vec<Vec<Subline>> {
|
||||
width: {
|
||||
// We've tried UnicodeWidthStr::width(x), UnicodeSegmentation::graphemes(x, true).count()
|
||||
// and x.chars().count() with all types of combinations. Currently, it appears that
|
||||
// getting the max of char count and unicode width seems to produce the best layout.
|
||||
// getting the max of char count and Unicode width seems to produce the best layout.
|
||||
// However, it's not perfect.
|
||||
let c = x.chars().count();
|
||||
let u = UnicodeWidthStr::width(x);
|
||||
|
Reference in New Issue
Block a user