Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 84439d7 in mainline for uspace/app/edit/edit.c


Ignore:
Timestamp:
2010-12-05T09:34:46Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
75732da
Parents:
56b962d (diff), 35537a7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with development/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/edit.c

    r56b962d r84439d7  
    781781                        c = str_decode(row_buf, &pos, size);
    782782                        if (c != '\t') {
    783                                 printf("%lc", c);
     783                                printf("%lc", (wint_t) c);
    784784                                s_column += 1;
    785785                        } else {
     
    830830        int n = printf(" %d, %d: File '%s'. Ctrl-Q Quit  Ctrl-S Save  "
    831831            "Ctrl-E Save As", coord.row, coord.column, fname);
    832         printf("%*s", scr_columns - 1 - n, "");
     832       
     833        int pos = scr_columns - 1 - n;
     834        printf("%*s", pos, "");
    833835        fflush(stdout);
    834836        console_set_style(con, STYLE_NORMAL);
     
    11531155        console_set_pos(con, 0, scr_rows - 1);
    11541156        console_set_style(con, STYLE_INVERTED);
    1155         printf(" %*s ", -(scr_columns - 3), str);
     1157       
     1158        int pos = -(scr_columns - 3);
     1159        printf(" %*s ", pos, str);
    11561160        fflush(stdout);
    11571161        console_set_style(con, STYLE_NORMAL);
Note: See TracChangeset for help on using the changeset viewer.