소스 검색

Simplify.

Martijn Laan 1 년 전
부모
커밋
c47c36bf78
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      Projects/Src/CompForm.pas

+ 1 - 4
Projects/Src/CompForm.pas

@@ -2636,10 +2636,7 @@ begin
     end;
   end
   else if (Key = VK_LEFT) and not (ssCtrl in Shift) and FOptions.CursorPastEOL then begin
-    var CaretPos := FActiveMemo.CaretPosition;
-    var Line := FActiveMemo.GetLineFromPosition(CaretPos);
-    var LinePos := FActiveMemo.GetPositionFromLine(Line);
-    if CaretPos = LinePos then
+    if FActiveMemo.CaretColumn = 0 then
       Key := 0;
   end
   else if (Key = VK_RIGHT) and (Shift * [ssShift, ssAlt, ssCtrl] = [ssAlt]) then begin