Changeset 884b461 in mainline
- Timestamp:
- 2009-09-16T21:09:07Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 743e17b
- Parents:
- c29f20b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
rc29f20b r884b461 208 208 case KC_ENTER: 209 209 insert_char('\n'); 210 pane.rflags |= REDRAW_TEXT;211 210 caret_update(); 212 211 break; … … 237 236 case KC_BACKSPACE: 238 237 delete_char_before(); 239 pane.rflags |= REDRAW_TEXT;240 238 caret_update(); 241 239 break; 242 240 case KC_DELETE: 243 241 delete_char_after(); 244 pane.rflags |= REDRAW_TEXT;245 242 caret_update(); 246 243 break; … … 248 245 if (ev->c >= 32 || ev->c == '\t') { 249 246 insert_char(ev->c); 250 pane.rflags |= REDRAW_ROW;251 247 caret_update(); 252 248 } … … 513 509 514 510 (void) sheet_insert(&doc.sh, &pt, dir_before, cbuf); 511 512 pane.rflags |= REDRAW_ROW; 513 if (c == '\n') 514 pane.rflags |= REDRAW_TEXT; 515 515 } 516 516 … … 528 528 529 529 (void) sheet_delete(&doc.sh, &sp, &ep); 530 531 pane.rflags |= REDRAW_ROW; 532 if (coord.column < 1) 533 pane.rflags |= REDRAW_TEXT; 530 534 } 531 535 … … 534 538 { 535 539 spt_t sp, ep; 536 coord_t coord;540 coord_t sc, ec; 537 541 538 542 tag_get_pt(&pane.caret_pos, &sp); 539 spt_get_coord(&sp, &coord); 540 541 sheet_get_cell_pt(&doc.sh, &coord, dir_after, &ep); 543 spt_get_coord(&sp, &sc); 544 545 sheet_get_cell_pt(&doc.sh, &sc, dir_after, &ep); 546 spt_get_coord(&ep, &ec); 542 547 543 548 (void) sheet_delete(&doc.sh, &sp, &ep); 549 550 pane.rflags |= REDRAW_ROW; 551 if (ec.row != sc.row) 552 pane.rflags |= REDRAW_TEXT; 544 553 } 545 554
Note:
See TracChangeset
for help on using the changeset viewer.