| 1549 | } |
| 1550 | |
| 1551 | void MainWindow::convertEOLs(int eolMode) |
| 1552 | { |
| 1553 | ScintillaNext *editor = currentEditor(); |
| 1554 | |
| 1555 | // TODO: does convertEOLs trigger SCN_MODIFIED notifications? If so can these be turned off to increase performance? |
| 1556 | editor->convertEOLs(eolMode); |
| 1557 | editor->setEOLMode(eolMode); |
| 1558 | |
| 1559 | updateEOLBasedUi(editor); |
| 1560 | |
| 1561 | // There's no simple Scintilla notification that the EOL mode has changed |
| 1562 | // So tell the status bar to refresh its info |
| 1563 | ui->statusBar->refresh(editor); |
| 1564 | } |
| 1565 | |
| 1566 | void MainWindow::showFindReplaceDialog(int index) |
| 1567 | { |