Changeset 2437 in kBuild for trunk/VSlickMacros
- Timestamp:
- Mar 28, 2011 7:17:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VSlickMacros/kkeys.e
r2428 r2437 136 136 _command kkeys_delete_right() 137 137 { 138 col=p_col 139 search('[ \t]#|?|$|^','r+'); 140 if ( match_length()&& get_text(1,match_length('s'))=='' ) 141 { 142 _nrseek(match_length('s')); 143 _delete_text(match_length()); 144 } 145 else 138 col=p_col; 139 140 /* virtual space hack*/ 141 keyin(" "); 142 left(); 143 _delete_char(); 144 145 /* are we in a word, delete it? */ 146 ch = get_text(); 147 if (ch != ' ' && ch != "\t" && ch != "\r" && ch != "\n") 146 148 delete_word(); 149 150 /* delete spaces and newlines until the next word. */ 151 ch = get_text(); 152 if (ch == ' ' || ch == "\t" || ch == "\r" || ch == "\n") 153 { 154 if (search('[ \t\n\r]#','r+') == 0) 155 { 156 _nrseek(match_length('s')); 157 _delete_text(match_length()); 158 } 159 } 160 147 161 p_col=col 148 162 //retrieve_command_results() 149 150 163 } 151 164
Note:
See TracChangeset
for help on using the changeset viewer.