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

Changeset c5a6076 in mainline


Ignore:
Timestamp:
2012-08-15T21:27:57Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
16639bb, a44abb3e
Parents:
5e77288
git-author:
Martin Sucha <sucha14@…> (2012-08-15 21:27:57)
git-committer:
Jiri Svoboda <jiri@…> (2012-08-15 21:27:57)
Message:

Fix off by one in column number computation, columns in sheet are numbered from 1.

File:
1 edited

Legend:

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

    r5e77288 rc5a6076  
    842842                /* Fill until the end of display area. */
    843843
    844                 if ((unsigned)s_column < scr_columns)
    845                         fill = scr_columns - s_column;
     844                if ((unsigned)s_column - 1 < scr_columns)
     845                        fill = scr_columns - (s_column - 1);
    846846                else
    847847                        fill = 0;
Note: See TracChangeset for help on using the changeset viewer.