Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /src/Editor.cxx [14d2fc] .. [58465a] Maximize Restore

  Switch to side-by-side view

--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -106,7 +106,7 @@
 	stylesValid = false;
 	technology = SC_TECHNOLOGY_DEFAULT;
 	scaleRGBAImage = 100;
-	
+
 	printMagnification = 0;
 	printColourMode = SC_PRINT_NORMAL;
 	printWrapState = eWrapWord;
@@ -149,7 +149,7 @@
 
 	caretYPolicy = CARET_EVEN;
 	caretYSlop = 0;
-	
+
 	visiblePolicy = 0;
 	visibleSlop = 0;
 
@@ -1765,7 +1765,7 @@
 		size_t endSegment = start;
 		while ((endSegment+1 < len) && (static_cast<size_t>(styles[endSegment+1]) == style))
 			endSegment++;
-		width += surface->WidthText(vs.styles[style+styleOffset].font, text + start, 
+		width += surface->WidthText(vs.styles[style+styleOffset].font, text + start,
 			static_cast<int>(endSegment - start + 1));
 		start = endSegment + 1;
 	}
@@ -2287,7 +2287,7 @@
 				if (vstyle.styles[ll->styles[charInLine]].visible) {
 					if (isControl) {
 						if (ll->chars[charInLine] == '\t') {
-							ll->positions[charInLine + 1] = 
+							ll->positions[charInLine + 1] =
 								((static_cast<int>((startsegx + 2) / tabWidth) + 1) * tabWidth) - startsegx;
 						} else if (controlCharSymbol < 32) {
 							if (ctrlCharWidth[ll->chars[charInLine]] == 0) {
@@ -4444,7 +4444,7 @@
 void Editor::NotifyFocus(bool) {}
 
 void Editor::SetCtrlID(int identifier) {
-	ctrlID = identifier; 
+	ctrlID = identifier;
 }
 
 void Editor::NotifyStyleToNeeded(int endStyleNeeded) {
@@ -6374,7 +6374,7 @@
 			if (inSelMargin) {
 				// Inside margin selection type should be either selSubLine or selWholeLine.
 				if (selectionType == selSubLine) {
-					// If it is selSubLine, we're inside a *double* click and word wrap is enabled, 
+					// If it is selSubLine, we're inside a *double* click and word wrap is enabled,
 					// so we switch to selWholeLine in order to select whole line.
 					selectionType = selWholeLine;
 				} else if (selectionType != selSubLine && selectionType != selWholeLine) {
@@ -6386,7 +6386,7 @@
 					selectionType = selWord;
 					doubleClick = true;
 				} else if (selectionType == selWord) {
-					// Since we ended up here, we're inside a *triple* click, which should always select 
+					// Since we ended up here, we're inside a *triple* click, which should always select
 					// whole line irregardless of word wrap being enabled or not.
 					selectionType = selWholeLine;
 				} else {
@@ -6451,7 +6451,7 @@
 					lineAnchorPos = sel.MainAnchor() - 1;
 				else
 					lineAnchorPos = sel.MainAnchor();
-				// Reset selection type if there is an empty selection. 
+				// Reset selection type if there is an empty selection.
 				// This ensures that we don't end up stuck in previous selection mode, which is no longer valid.
 				// Otherwise, if there's a non empty selection, reset selection type only if it differs from selSubLine and selWholeLine.
 				// This ensures that we continue selecting in the same selection mode.
@@ -7095,7 +7095,7 @@
 		WrapLines(true, -1);
 
 	if (!cs.GetVisible(lineDoc)) {
-		// Back up to find a non-blank line 
+		// Back up to find a non-blank line
 		int lookLine = lineDoc;
 		int lookLineLevel = pdoc->GetLevel(lookLine);
 		while ((lookLine > 0) && (lookLineLevel & SC_FOLDLEVELWHITEFLAG)) {
@@ -7103,7 +7103,7 @@
 		}
 		int lineParent = pdoc->GetFoldParent(lookLine);
 		if (lineParent < 0) {
-			// Backed up to a top level line, so try to find parent of initial line 
+			// Backed up to a top level line, so try to find parent of initial line
 			lineParent = pdoc->GetFoldParent(lineDoc);
 		}
 		if (lineParent >= 0) {
@@ -8044,10 +8044,10 @@
 
 	case SCI_GETLINEENDTYPESALLOWED:
 		return pdoc->GetLineEndTypesAllowed();
-		
+
 	case SCI_GETLINEENDTYPESACTIVE:
 		return pdoc->GetLineEndTypesActive();
-		
+
 	case SCI_STARTSTYLING:
 		pdoc->StartStyling(wParam, static_cast<char>(lParam));
 		break;
@@ -8429,7 +8429,7 @@
 	case SCI_MARKERGET:
 		return pdoc->GetMark(wParam);
 
-	case SCI_MARKERNEXT: 
+	case SCI_MARKERNEXT:
 		return pdoc->MarkerNext(wParam, lParam);
 
 	case SCI_MARKERPREVIOUS: {
@@ -8719,7 +8719,7 @@
 		EnsureLineVisible(wParam, true);
 		break;
 
-	case SCI_SCROLLRANGE: 
+	case SCI_SCROLLRANGE:
 		ScrollRange(SelectionRange(lParam, wParam));
 		break;
 
@@ -9657,18 +9657,18 @@
 	case SCI_CHANGELEXERSTATE:
 		pdoc->ChangeLexerState(wParam, lParam);
 		break;
-	
+
 	case SCI_SETIDENTIFIER:
 		SetCtrlID(wParam);
 		break;
-	
+
 	case SCI_GETIDENTIFIER:
 		return GetCtrlID();
 
 	case SCI_SETTECHNOLOGY:
 		// No action by default
 		break;
-	
+
 	case SCI_GETTECHNOLOGY:
 		return technology;