From e62ea048c74882d19e1f782b32922b383b914f1d Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 22 Feb 2018 13:53:22 +0100 Subject: [PATCH] When clicking on the view border, select the whole line from the beginning Based on TortoiseSVN rev. 28111. Signed-off-by: Sven Strickroth --- src/TortoiseMerge/BaseView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TortoiseMerge/BaseView.cpp b/src/TortoiseMerge/BaseView.cpp index bc231d0de..6ae2b8a7b 100644 --- a/src/TortoiseMerge/BaseView.cpp +++ b/src/TortoiseMerge/BaseView.cpp @@ -1,6 +1,6 @@ // TortoiseGitMerge - a Diff/Patch program -// Copyright (C) 2003-2017 - TortoiseSVN +// Copyright (C) 2003-2018 - TortoiseSVN // Copyright (C) 2011-2012, 2017 Sven Strickroth // This program is free software; you can redistribute it and/or @@ -3221,6 +3221,7 @@ void CBaseView::OnLButtonDown(UINT nFlags, CPoint point) { // select the whole line m_ptSelectionViewPosStart = m_ptSelectionViewPosEnd = GetCaretViewPosition(); + m_ptSelectionViewPosStart.x = 0; m_ptSelectionViewPosEnd.x = GetViewLineLength(m_ptSelectionViewPosEnd.y); } } -- 2.11.4.GIT