VirtualBox

Changeset 2558 in kBuild for trunk/VSlickMacros


Ignore:
Timestamp:
Feb 13, 2012 12:36:03 PM (13 years ago)
Author:
bird
Message:

kkeys_delete_right fix (again).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VSlickMacros/kkeys.e

    r2437 r2558  
    138138   col=p_col;
    139139
    140    /* virtual space hack*/
     140   /* virtual space hack */
    141141   keyin(" ");
    142142   left();
     
    146146   ch = get_text();
    147147   if (ch != ' ' && ch != "\t" && ch != "\r" && ch != "\n")
     148   {
     149      /* Delete word and any trailing spaces, but stop at new line. */
    148150      delete_word();
    149151
    150    /* delete spaces and newlines until the next word. */
    151    ch = get_text();
    152    if (ch == ' ' || ch == "\t" || ch == "\r" || ch == "\n")
    153    {
     152      ch = get_text();
     153      if (ch == ' ' || ch == "\t" || ch == "\r" || ch == "\n")
     154      {
     155         if (search('[ \t]#','r+') == 0)
     156         {
     157            _nrseek(match_length('s'));
     158            _delete_text(match_length());
     159         }
     160      }
     161   }
     162   else
     163   {
     164      /* delete spaces and newlines until the next word. */
    154165      if (search('[ \t\n\r]#','r+') == 0)
    155166      {
     
    161172   p_col=col
    162173   //retrieve_command_results()
    163 }
    164 
    165 _command kkeys_delete_left()
    166 {
    167    //denne virker ikkje som den skal!!!
    168    message "not implemented"
    169 /*
    170    return;
    171    col=p_col
    172    search('[ \t]#|?|$|^','r-');
    173    if ( match_length()&& get_text(1,match_length('s'))=='' )
    174    {
    175       _nrseek(match_length('s'));
    176       _delete_text(match_length());
    177    }
    178    else
    179       delete_word();
    180    p_col=col
    181 */
    182174}
    183175
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette