EDIT: Do not highlight on find. Beep on not found.

This commit is contained in:
Bobbi Webber-Manners 2021-06-11 19:13:04 -04:00
parent 2ca9e4769e
commit 89e5de0374

View File

@ -473,6 +473,8 @@ void update_status_line(void) {
l = 49 - 12 - strlen(dispfname); l = 49 - 12 - strlen(dispfname);
cclear(l); cclear(l);
cprintf("| Free:%2uKB | NOT FOUND", (FREESPACE() + 512) / 1024); cprintf("| Free:%2uKB | NOT FOUND", (FREESPACE() + 512) / 1024);
beep();
beep();
l = 0; l = 0;
break; break;
} }
@ -1623,8 +1625,8 @@ uint8_t finish_search_replace(uint16_t pos, uint8_t r, uint8_t ask) {
uint8_t i; uint8_t i;
mode = SEL_NONE; mode = SEL_NONE;
jump_pos(pos); jump_pos(pos);
startsel = gapend + 1; // startsel = gapend + 1;
endsel = gapend + 1 + strlen(search); // endsel = gapend + 1 + strlen(search);
draw_screen(); draw_screen();
if (r == 0) { // Replace mode if (r == 0) { // Replace mode
if (ask) { if (ask) {
@ -1647,7 +1649,7 @@ uint8_t finish_search_replace(uint16_t pos, uint8_t r, uint8_t ask) {
cursor_right(); cursor_right();
return 1; // Continue return 1; // Continue
} }
startsel = endsel = 65535U; // startsel = endsel = 65535U;
return 0; // Do not continue return 0; // Do not continue
} }