From d43b0a6ea063d7529f2b2b2dd01d7d35f271196b Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 22 Apr 2011 18:57:15 +0000 Subject: [PATCH] [BUG_FIXED] Fix the display bug for "...". git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@751 f5eea248-9336-0410-98b8-ebc06183d4e3 --- .../WinControls/ClipboardHistory/clipboardHistoryPanel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp index ad370cb64..f40c87452 100644 --- a/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp +++ b/PowerEditor/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp @@ -107,7 +107,9 @@ StringArray::StringArray(ClipboardData cd, size_t maxLen) size_t i = 0; for ( ; i < _length ; i++) { - if (!isCompleted && (i == _length-3 || i == _length-2 || i == _length-1)) + if (!isCompleted && (i == _length-5 || i == _length-3 || i == _length-1)) + _pBytes[i] = 0; + else if (!isCompleted && (i == _length-6 || i == _length-4 || i == _length-2)) _pBytes[i] = '.'; else _pBytes[i] = cd[i];