Skip to content

Commit fc4acd6

Browse files
committed
SDL: Update editor popup appearance
1 parent 570abdb commit fc4acd6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/platform/sdl/editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void System::editSource(String loadPath, bool restoreOnExit) {
332332
if (editWidget->getTextLength()) {
333333
saveFile(editWidget, loadPath);
334334
saveRecentPosition(loadPath, editWidget->getCursorPos());
335-
_output->setStatus("Export to SmallBASIC. Enter <IP>:<Port> | <sbasic command>");
335+
_output->setStatus("Export to SmallBASIC. Enter <IP>:<Port> | <sbasic>");
336336
widget = helpWidget;
337337
helpWidget->createLineEdit(g_exportAddr);
338338
showHelpLineInput(helpWidget, 60);

src/ui/textedit.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,11 +2369,14 @@ void TextEditHelpWidget::toggleKeyword() {
23692369
}
23702370

23712371
void TextEditHelpWidget::showPopup(int cols, int rows) {
2372-
if (cols < 0 && rows < 0) {
2372+
if (cols < 0) {
23732373
_width = _editor->_width - (_charWidth * -cols);
2374-
_height = _editor->_height - (_charHeight * -rows);
23752374
} else {
23762375
_width = _charWidth * cols;
2376+
}
2377+
if (rows < 0) {
2378+
_height = _editor->_height - (_charHeight * -rows);
2379+
} else {
23772380
_height = _charHeight * rows;
23782381
}
23792382
if (_width > _editor->_width) {

0 commit comments

Comments
 (0)