Skip to content

Commit c295f84

Browse files
committed
Fixed bug where auto-repeating 'repeat on same line' would wipe out command
1 parent 81d3ca1 commit c295f84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sendvw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void CSendView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
317317
CMUSHclientDoc* pDoc = GetDocument();
318318
ASSERT_VALID(pDoc);
319319

320-
if ((nChar == VK_RETURN) && (nRepCnt == 1))
320+
if (nChar == VK_RETURN)
321321
{
322322

323323
pDoc->m_iCurrentActionSource = eUserTyping;
@@ -718,6 +718,7 @@ void CSendView::SendCommand (const CString strOriginalCommand,
718718
if (!bSavePrevious)
719719
if (pDoc->m_bAutoRepeat && !pDoc->m_bNoEcho) // auto repeat re-enters the last command
720720
{
721+
SetCommand (strOriginalCommand);
721722
GetEditCtrl().SetSel (0, -1); // select all
722723
m_bChanged = FALSE; // no change yet
723724
}

0 commit comments

Comments
 (0)