Changeset 8c97fa1 for functions.c


Ignore:
Timestamp:
Dec 19, 2009, 10:49:57 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6aa4611
Parents:
1247aaa
git-author:
Alex Dehnert <adehnert@mit.edu> (12/19/09 21:45:37)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/19/09 22:49:57)
Message:
Add recv:getshift and recv:setshift

[nelhage@mit.edu: Clean up shift_left logic slightly]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r129e609 r8c97fa1  
    843843
    844844  shift=owl_global_get_rightshift(&g);
    845   if (shift>=10) {
    846     owl_global_set_rightshift(&g, shift-10);
     845  if (shift > 0) {
     846    owl_global_set_rightshift(&g, MAX(shift - 10, 0));
    847847    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    848848    owl_global_set_needrefresh(&g);
Note: See TracChangeset for help on using the changeset viewer.