浏览代码

Not word-wrapping on apostrophes

omar 10 年之前
父节点
当前提交
e78c47961e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -5946,7 +5946,7 @@ const char* ImBitmapFont::CalcWordWrapPositionA(float scale, const char* text, c
             }
 
             // Allow wrapping after punctuation.
-            inside_word = !(c == '.' || c == ',' || c == ';' || c == '!' || c == '?' || c == '\'' || c == '\"');
+            inside_word = !(c == '.' || c == ',' || c == ';' || c == '!' || c == '?' || c == '\"');
         }
 
         // We ignore blank width at the end of the line (they can be skipped)