浏览代码

CompForm: Update the right memo.

Jordan Russell 5 年之前
父节点
当前提交
6b8bda3b70
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Projects/CompForm.pas

+ 1 - 1
Projects/CompForm.pas

@@ -2414,7 +2414,7 @@ begin
     for Memo in FMemos do begin
     for Memo in FMemos do begin
       { Move caret to start of line to ensure it doesn't end up in the middle
       { Move caret to start of line to ensure it doesn't end up in the middle
         of a double-byte character if the code page changes from SBCS to DBCS }
         of a double-byte character if the code page changes from SBCS to DBCS }
-      Memo.CaretLine := FMainMemo.CaretLine;
+      Memo.CaretLine := Memo.CaretLine;
       Memo.Font.Assign(OptionsForm.FontPanel.Font);
       Memo.Font.Assign(OptionsForm.FontPanel.Font);
     end;
     end;
     SyncEditorOptions;
     SyncEditorOptions;