From 68c671f4cb107d9a1e12b6dc5226826d3cced176 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Fri, 23 Apr 2010 22:40:54 +0800 Subject: [PATCH] Fixed issue #396: Fix 'Copy paths to clipboard' option Signed-off-by: Frank Li --- src/Git/GitStatusListCtrl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Git/GitStatusListCtrl.cpp b/src/Git/GitStatusListCtrl.cpp index 9b18e50cb..e719af603 100644 --- a/src/Git/GitStatusListCtrl.cpp +++ b/src/Git/GitStatusListCtrl.cpp @@ -5027,9 +5027,11 @@ bool CGitStatusListCtrl::CopySelectedEntriesToClipboard(DWORD dwCols) TCHAR buf[100]; if (GetSelectedCount() == 0) return false; + // first add the column titles as the first line - temp.LoadString(IDS_STATUSLIST_COLFILE); - sClipboard = temp; + // We needn't head when only path copy + //temp.LoadString(IDS_STATUSLIST_COLFILE); + //sClipboard = temp; DWORD selection = 0; for (int i = 0, count = m_ColumnManager.GetColumnCount(); i < count; ++i) @@ -5042,7 +5044,8 @@ bool CGitStatusListCtrl::CopySelectedEntriesToClipboard(DWORD dwCols) selection += 1 << i; } - sClipboard += _T("\r\n"); + if(dwCols) + sClipboard += _T("\r\n"); POSITION pos = GetFirstSelectedItemPosition(); int index; -- 2.11.4.GIT