Count chars

This commit is contained in:
Joseph Lyons 2023-01-25 14:20:40 -05:00
parent f68f9f37ab
commit 7f3d937938

View file

@ -134,7 +134,7 @@ impl FeedbackEditor {
_: ModelHandle<Project>,
cx: &mut ViewContext<Self>,
) -> Task<anyhow::Result<()>> {
let feedback_char_count = self.editor.read(cx).buffer().read(cx).len(cx);
let feedback_char_count = self.editor.read(cx).text(cx).chars().count();
let error = if feedback_char_count < *FEEDBACK_CHAR_LIMIT.start() {
Some(format!(