Skip to content

Commit

Permalink
Merge pull request sakura-editor#1241 from beru/wrapline_selcharacnt_…
Browse files Browse the repository at this point in the history
…incorrect

折り返しされた際、文字数カウントが合わない不具合を修正
  • Loading branch information
beru authored Apr 24, 2020
2 parents f2cb004 + 0c86671 commit a6bbd73
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit a6bbd73

Please sign in to comment.