From 409c25b75011bbc62a7ff0f314915988060b049f Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 30 Jan 2023 12:00:54 -0500 Subject: [PATCH] Fix typo in Text app --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 68f14cf..22faf1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -267,7 +267,7 @@ protected: // End of the input, print it if we can. String word = s.substring(next); - if (display.textWidth(words) + display.getCursorX() > display.width()) { + if (display.textWidth(word) + display.getCursorX() > display.width()) { display.print("\n"); if (endOfPage(display)) { break;