Changeset ae7d03c in mainline for uspace/app
- Timestamp:
- 2018-05-10T13:39:19Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8975278
- Parents:
- b277bef
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-10 07:38:12)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-10 13:39:19)
- Location:
- uspace/app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
rb277bef rae7d03c 292 292 if (((ev->mods & KM_ALT) == 0) && 293 293 ((ev->mods & KM_SHIFT) == 0) && 294 294 (ev->mods & KM_CTRL) != 0) { 295 295 key_handle_ctrl(ev); 296 296 } else if (((ev->mods & KM_ALT) == 0) && 297 297 ((ev->mods & KM_CTRL) == 0) && 298 298 (ev->mods & KM_SHIFT) != 0) { 299 299 key_handle_shift(ev); 300 300 } else if (((ev->mods & KM_ALT) == 0) && 301 301 ((ev->mods & KM_CTRL) != 0) && 302 302 (ev->mods & KM_SHIFT) != 0) { 303 303 key_handle_shift_ctrl(ev); 304 304 } else if ((ev->mods & (KM_CTRL | KM_ALT | KM_SHIFT)) == 0) { … … 458 458 { 459 459 spt_t pt; 460 switch (ev->key) {460 switch (ev->key) { 461 461 case KC_LEFT: 462 462 caret_move_word_left(true); … … 915 915 s_column += 1; 916 916 } else { 917 fill = 1 + ALIGN_UP(s_column, TAB_WIDTH) 918 -s_column;917 fill = 1 + ALIGN_UP(s_column, TAB_WIDTH) - 918 s_column; 919 919 920 920 for (j = 0; j < fill; ++j) … … 1169 1169 tag_get_pt(&pane.caret_pos, &pt); 1170 1170 spt_get_coord(&pt, &coord); 1171 coord.row += drow; coord.column += dcolumn; 1171 coord.row += drow; 1172 coord.column += dcolumn; 1172 1173 1173 1174 /* Clamp coordinates. */ 1174 if (drow < 0 && coord.row < 1) coord.row = 1; 1175 if (drow < 0 && coord.row < 1) 1176 coord.row = 1; 1175 1177 if (dcolumn < 0 && coord.column < 1) { 1176 1178 if (coord.row < 2) … … 1183 1185 if (drow > 0) { 1184 1186 sheet_get_num_rows(doc.sh, &num_rows); 1185 if (coord.row > num_rows) coord.row = num_rows; 1187 if (coord.row > num_rows) 1188 coord.row = num_rows; 1186 1189 } 1187 1190 … … 1377 1380 if (!reverse) { 1378 1381 spt_next_char(sp, &sp); 1379 } 1380 else { 1382 } else { 1381 1383 spt_prev_char(sp, &sp); 1382 1384 } … … 1409 1411 if (reverse) { 1410 1412 spt_next_char(*end, end); 1411 } 1412 else { 1413 } else { 1413 1414 spt_prev_char(*end, end); 1414 1415 } … … 1416 1417 caret_move(*end, true, true); 1417 1418 free(end); 1418 } 1419 else { 1419 } else { 1420 1420 status_display("Not found."); 1421 1421 } … … 1589 1589 1590 1590 /* the spt is at the beginning or end of the file or line */ 1591 if ((spt_cmp(&sfp, pt) == 0) || (spt_cmp(&efp, pt) == 0) 1592 ||(spt_cmp(&slp, pt) == 0) || (spt_cmp(&elp, pt) == 0))1591 if ((spt_cmp(&sfp, pt) == 0) || (spt_cmp(&efp, pt) == 0) || 1592 (spt_cmp(&slp, pt) == 0) || (spt_cmp(&elp, pt) == 0)) 1593 1593 return true; 1594 1594 … … 1602 1602 sheet_get_cell_pt(doc.sh, &coord, dir_before, &lp); 1603 1603 1604 return pt_is_delimiter(&lp) 1605 || (pt_is_punctuation(pt) && !pt_is_punctuation(&lp))1606 ||(pt_is_punctuation(&lp) && !pt_is_punctuation(pt));1604 return pt_is_delimiter(&lp) || 1605 (pt_is_punctuation(pt) && !pt_is_punctuation(&lp)) || 1606 (pt_is_punctuation(&lp) && !pt_is_punctuation(pt)); 1607 1607 } 1608 1608 … … 1629 1629 1630 1630 wchar_t first_char = get_first_wchar(ch); 1631 switch (first_char) {1631 switch (first_char) { 1632 1632 case ' ': 1633 1633 case '\t': … … 1655 1655 1656 1656 wchar_t first_char = get_first_wchar(ch); 1657 switch (first_char) {1657 switch (first_char) { 1658 1658 case ',': 1659 1659 case '.': -
uspace/app/sbi/src/input.c
rb277bef rae7d03c 103 103 * 104 104 * @return EOK on success, ENOENT when opening file fails. 105 */105 */ 106 106 static errno_t input_init_file(input_t *input, const char *fname) 107 107 { -
uspace/app/sbi/src/run_expr.c
rb277bef rae7d03c 805 805 * @param v2 Value of second argument 806 806 * @param res Place to store result 807 */807 */ 808 808 static void run_binop_char(run_t *run, stree_binop_t *binop, rdata_value_t *v1, 809 809 rdata_value_t *v2, rdata_item_t **res) … … 878 878 * @param v2 Value of second argument 879 879 * @param res Place to store result 880 */880 */ 881 881 static void run_binop_int(run_t *run, stree_binop_t *binop, rdata_value_t *v1, 882 882 rdata_value_t *v2, rdata_item_t **res) … … 2577 2577 * @param assign Assignment expression 2578 2578 * @param res Place to store result 2579 */2579 */ 2580 2580 static void run_assign(run_t *run, stree_assign_t *assign, rdata_item_t **res) 2581 2581 { -
uspace/app/sbi/src/stype_expr.c
rb277bef rae7d03c 916 916 * @param unop Unary operation 917 917 * @param rtitem Place to store result type 918 */918 */ 919 919 static void stype_unop(stype_t *stype, stree_unop_t *unop, 920 920 tdata_item_t **rtitem) … … 1191 1191 * @param arg_ti Base type 1192 1192 * @param rtitem Place to store result type 1193 */1193 */ 1194 1194 static void stype_access_tobject(stype_t *stype, stree_access_t *access, 1195 1195 tdata_item_t *arg_ti, tdata_item_t **rtitem) … … 1349 1349 * @param arg_ti Base type 1350 1350 * @param rtitem Place to store result type 1351 */1351 */ 1352 1352 static void stype_access_tebase(stype_t *stype, stree_access_t *access, 1353 1353 tdata_item_t *arg_ti, tdata_item_t **rtitem) … … 1840 1840 ptitem = box->arg->titem; 1841 1841 1842 1842 /* Make compiler happy. */ 1843 1843 csi_sym = NULL; 1844 1844
Note:
See TracChangeset
for help on using the changeset viewer.