File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 290
290
- Renamed "Candidates" as "Input Candidates".
291
291
- 2024-XX-YY ver.5.2.0
292
292
- Improved "Edit" and "View" menus.
293
+ - Enabled to correctly undo input using "Input Candidates".
293
294
294
295
# 開発履歴 (Japanese)
295
296
896
897
- 「候補」を「入力候補」に改名。
897
898
- 2024年XX月YY日 ver.5.2.0
898
899
- 「編集」「表示」メニューを改良。
900
+ - 「入力候補」による入力を正しく元に戻せるようにした。
Original file line number Diff line number Diff line change @@ -553,6 +553,11 @@ class XG_CandsWnd : public XG_Window
553
553
{
554
554
XGStringW cand = XgNormalizeString (strCand);
555
555
556
+ // 元に戻す情報を記録する。
557
+ auto sa1 = std::make_shared<XG_UndoData_SetAll>();
558
+ auto sa2 = std::make_shared<XG_UndoData_SetAll>();
559
+ sa1->Get ();
560
+
556
561
int lo, hi;
557
562
if (xg_bCandVertical) {
558
563
for (lo = xg_iCandPos; lo > 0 ; --lo) {
@@ -589,5 +594,9 @@ class XG_CandsWnd : public XG_Window
589
594
xword.SetAt (xg_iCandPos, k, cand[m]);
590
595
}
591
596
}
597
+
598
+ // 「元に戻す」情報を設定する。
599
+ sa2->Get ();
600
+ xg_ubUndoBuffer.Commit (UC_SETALL, sa1, sa2);
592
601
}
593
602
};
You can’t perform that action at this time.
0 commit comments