Changeset 16917


Ignore:
Timestamp:
06/26/13 18:05:16 (12 years ago)
Author:
tbretz
Message:
Some consistency... dorce update is the strongest call we have to update the prompt as far as I understand.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Readline.cc

    r16916 r16917  
    366366    int w, h;
    367367    rl_get_screen_size(&h, &w);
    368     if (W!=w || h!=H)
    369     {
    370         cout << '\r' << string(w+1, ' ') << '\r';
    371 
    372         W=w;
    373         H=h;
    374     }
    375 
    376     rl_redisplay();
     368    if (W==w && h==H)
     369    {
     370        rl_redisplay();
     371        return;
     372    }
     373
     374    cout << '\r' << string(w+1, ' ') << '\r';
     375
     376    W=w;
     377    H=h;
     378
     379    rl_forced_update_display();
    377380}
    378381
Note: See TracChangeset for help on using the changeset viewer.