Skip to content

Commit

Permalink
Fix issue #2368: Replace - more intelligent choice of replace in (who…
Browse files Browse the repository at this point in the history
…le file vs selection)
  • Loading branch information
sdottaka committed Jul 3, 2024
1 parent c3bcb45 commit ba108a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Externals/crystaledit/editlib/ccrystaleditview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ OnEditReplace ()
GetSelection (m_ptSavedSelStart, m_ptSavedSelEnd);
m_bSelectionPushed = true;

m_pEditReplaceDlg->SetScope(true); // Replace in current selection
m_pEditReplaceDlg->SetScope(m_ptSavedSelStart.y != m_ptSavedSelEnd.y); // Replace in current selection if multiple lines are selected
m_pEditReplaceDlg->m_ptCurrentPos = m_ptSavedSelStart;
m_pEditReplaceDlg->m_bEnableScopeSelection = true;
m_pEditReplaceDlg->m_ptBlockBegin = m_ptSavedSelStart;
Expand Down

0 comments on commit ba108a9

Please sign in to comment.