Index: src/winhugs/DlgMain.c =================================================================== RCS file: /cvs/hugs98/src/winhugs/DlgMain.c,v retrieving revision 1.3 diff -u -r1.3 DlgMain.c --- src/winhugs/DlgMain.c 5 Sep 2005 16:07:53 -0000 1.3 +++ src/winhugs/DlgMain.c 6 Sep 2005 09:15:56 -0000 @@ -173,7 +173,8 @@ stringInput((LPSTR) Command); input(BREAK); - doCommand(); + if (doCommand()) + SendMessage(hThisWindow, WM_CLOSE, 0, 0); RtfWindowFlushBuffer(); Running = FALSE;