Changeset c5a6076 in mainline for uspace/app/edit/edit.c


Ignore:
Timestamp:
2012-08-15T21:27:57Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.