diff --git a/source/gui/widgets/skeletons/text_editor.cpp b/source/gui/widgets/skeletons/text_editor.cpp index b3015adc..b0c4c800 100644 --- a/source/gui/widgets/skeletons/text_editor.cpp +++ b/source/gui/widgets/skeletons/text_editor.cpp @@ -2456,7 +2456,7 @@ namespace nana { if (arg.ctrl) { coord.y = static_cast((line_count - 1) * line_px); //The number of charecters of the bottom line - auto const text_length = textbase().getline(std::max(0u, line_count - 1)).size(); + auto const text_length = textbase().getline(std::max(0, line_count - 1)).size(); //move the caret to the end of the line pos.x = static_cast(text_length); }