• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28112 (tree)
Zeit2018-02-20 04:30:58
Autorstefankueng

Log Message

* correctly set the max line length if there is only one line
* recalculate the horizontal scrollbar when wrapping changes

Ändern Zusammenfassung

Diff

--- trunk/src/Changelog.txt (revision 28111)
+++ trunk/src/Changelog.txt (revision 28112)
@@ -10,6 +10,8 @@
1010 contain the "%" char. (Stefan)
1111 - BUG: TMerge did not select the whole line when clicked
1212 on the line number. (Stefan)
13+- BUG: Horizontal scrollbar shown wrong if the view
14+ in TMerge had only one line. (Stefan)
1315
1416 Version 1.9.7
1517 - BUG: Drag copy-and-add did not add auto-properties. (Stefan)
--- trunk/src/TortoiseMerge/BaseView.cpp (revision 28111)
+++ trunk/src/TortoiseMerge/BaseView.cpp (revision 28112)
@@ -593,7 +593,10 @@
593593 m_nMaxLineLength = 0;
594594 int nLineCount = GetLineCount();
595595 if (nLineCount == 1)
596- return GetLineLengthWithTabsConverted(0);
596+ {
597+ m_nMaxLineLength = GetLineLengthWithTabsConverted(0);
598+ return m_nMaxLineLength;
599+ }
597600 for (int i=0; i<nLineCount; i++)
598601 {
599602 int nActualLength = GetLineLengthWithTabsConverted(i);
@@ -5399,6 +5402,7 @@
53995402 {
54005403 m_nMaxLineLength = -1;
54015404 m_nOffsetChar = 0;
5405+ RecalcHorzScrollBar();
54025406 }
54035407
54045408 void CBaseView::OnEditFind()
--- trunk/test/mergediff/longline1.txt (nonexistent)
+++ trunk/test/mergediff/longline1.txt (revision 28112)
@@ -0,0 +1 @@
1+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffgggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
\ No newline at end of file
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
--- trunk/test/mergediff/longline2.txt (nonexistent)
+++ trunk/test/mergediff/longline2.txt (revision 28112)
@@ -0,0 +1 @@
1+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffgggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhxxx
\ No newline at end of file
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Show on old repository browser