minor change: format for the message in status bar

This commit is contained in:
Roy Qu 2024-03-14 12:29:20 +08:00
parent 365c15a874
commit 4810992ed3
1 changed files with 2 additions and 2 deletions

View File

@ -1501,7 +1501,7 @@ void MainWindow::updateStatusbarForLineCol(const Editor* e, bool clear)
if (pSettings->editor().forceFixedFontWidth()){ if (pSettings->editor().forceFixedFontWidth()){
int col = e->charToGlyphLeft(e->caretY(),e->caretX())/e->charWidth()+1; int col = e->charToGlyphLeft(e->caretY(),e->caretX())/e->charWidth()+1;
if (e->selAvail()) { if (e->selAvail()) {
msg = tr("Line: %1/%2 Col: %3 Sel:%4") msg = tr("Line: %1/%2 Col: %3 Sel: %4")
.arg(e->caretY()) .arg(e->caretY())
.arg(e->document()->count()) .arg(e->document()->count())
.arg(col) .arg(col)
@ -1514,7 +1514,7 @@ void MainWindow::updateStatusbarForLineCol(const Editor* e, bool clear)
} }
} else { } else {
if (e->selAvail()) { if (e->selAvail()) {
msg = tr("Line: %1/%2 Char: %3/%4 Sel:%5") msg = tr("Line: %1/%2 Char: %3/%4 Sel: %5")
.arg(e->caretY()) .arg(e->caretY())
.arg(e->document()->count()) .arg(e->document()->count())
.arg(e->caretX()) .arg(e->caretX())