Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

折り返しされた際、文字数カウントが合わない不具合を修正 #1241

Merged
merged 1 commit into from
Apr 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sakura_core/view/CViewSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ void CViewSelect::PrintSelectionInfoMsg() const
pcLayout = pView->m_pcEditDoc->m_cLayoutMgr.SearchLineByLayoutY( nLineNum );
for( ; nLineNum < nLineTo && pcLayout; ++nLineNum ){
// 2006.06.06 ryoji 指定行のデータが存在しない場合の対策
select_sum += pcLayout->GetLengthWithEOL() - 1 + pcLayout->GetLayoutEol().GetLen();
CLogicInt eolLen = pcLayout->GetLayoutEol().GetLen();
select_sum += pcLayout->GetLengthWithEOL() - (eolLen ? 1 : 0) + eolLen;
pcLayout = pcLayout->GetNextLayout();
}

Expand Down