Skip to content

Commit e5b82f3

Browse files
committed
ttermpro.exe の /I オプション指定時にマクロコマンド connect でホストに接続出来ない不具合を修正した。(5.4.1でのデグレード) #975
ttermpro.exe の /V オプション指定時にウインドウが非表示にならない不具合を修正した。(5.4.1でのデグレード)
1 parent c8a7e72 commit e5b82f3

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

doc/en/html/about/history.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ <h3 id="teraterm_5.6.0">YYYY.MM.DD (Ver 5.6.0 not released yet)</h3>
5151
Fixed an issue so that [File] - [Change directory...] can be selected even when the session is disconnected.
5252
(<a href="https://github.com/TeraTermProject/teraterm/issues/969" target="_blank">issue #969</a>)
5353
</li>
54+
<li>
55+
Fixed an issue where the window was not hidden when ttermpro.exe was launched with the /V option. (degradation at 5.4.1)<br>
56+
Fixed an issue where the macro command "connect" failed to connect to the host when ttermpro.exe was launched with the /I option.
57+
(<a href="https://github.com/TeraTermProject/teraterm/issues/975" target="_blank">issue #975</a>)
58+
</li>
5459
</ul>
5560
</li>
5661

doc/ja/html/about/history.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ <h3 id="teraterm_5.6.0">YYYY.MM.DD (Ver 5.6.0 not released yet)</h3>
5151
セッション断の状態でも [File] - [Change directory...] を選択出来るよう修正した。
5252
(<a href="https://github.com/TeraTermProject/teraterm/issues/969" target="_blank">issue #969</a>)
5353
</li>
54+
<li>
55+
ttermpro.exe の /I オプション指定時にマクロコマンド connect でホストに接続出来ない不具合を修正した。(5.4.1でのデグレード)<br>
56+
ttermpro.exe の /V オプション指定時にウインドウが非表示にならない不具合を修正した。(5.4.1でのデグレード)
57+
(<a href="https://github.com/TeraTermProject/teraterm/issues/975" target="_blank">issue #975</a>)
58+
</li>
5459
</ul>
5560
</li>
5661

teraterm/teraterm/teraterm.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInst,
374374
pVTWin = m_pMainWnd;
375375
main_window = m_pMainWnd->m_hWnd;
376376

377-
if (ts.Minimize>0) {
378-
nCmdShow = SW_SHOWMINIMIZED;
379-
}
380-
ShowWindow(main_window, nCmdShow);
381-
382377
// [Tera Term]セクションのDLG_SYSTEM_FONTをとりあえずセットする
383378
SetDialogFont(ts.DialogFontNameW, ts.DialogFontPoint, ts.DialogFontCharSet,
384379
ts.UILanguageFileW, "Tera Term", "DLG_SYSTEM_FONT");

teraterm/teraterm/vtwin.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,7 @@ CVTWindow::CVTWindow(HINSTANCE hInstance)
787787
TipWin->Create(HVTWin);
788788
}
789789

790-
if (ts.nCmdShow == SW_HIDE || ts.nCmdShow == SW_SHOWMINIMIZED ||
791-
ts.nCmdShow == SW_MINIMIZE || ts.HideWindow > 0) {
790+
if (ts.nCmdShow == SW_HIDE || ts.HideWindow > 0) {
792791
if (strlen(TopicName)>0) {
793792
InitDDE();
794793
SendDDEReady();
@@ -798,6 +797,11 @@ CVTWindow::CVTWindow(HINSTANCE hInstance)
798797
return;
799798
}
800799
SetWindowAlpha(ts.AlphaBlendActive);
800+
int CmdShow = ts.nCmdShow;
801+
if (ts.Minimize > 0) {
802+
CmdShow = SW_SHOWMINIMIZED;
803+
}
804+
ShowWindow(CmdShow);
801805
ChangeCaret(vt_src);
802806
}
803807

0 commit comments

Comments
 (0)