Changeset 2388 in kBuild for trunk/VSlickMacros
- Timestamp:
- Jan 26, 2010 3:12:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VSlickMacros/kkeys.e
r2353 r2388 45 45 def 'S-A-]' = next_buff_tab 46 46 def 'S-A-[' = prev_buff_tab 47 def 'S-A-U' = kkeys_gen_uuid 47 48 #endif 48 49 /* For the mac (A/M mix, all except A-z): */ … … 59 60 def 'S-M-]' = next_buff_tab 60 61 def 'S-M-[' = prev_buff_tab 62 def 'S-M-U' = kkeys_gen_uuid 61 63 #endif 62 64 /* Fixing brainfucked slickedit silliness: */ 63 65 def 'M-v' = paste 66 67 68 /** Saves the cursor position. */ 69 static long kkeys_save_cur_pos() 70 { 71 long offset = _QROffset(); 72 message(offset); 73 return offset; 74 } 75 76 /** Restores a saved cursor position. */ 77 static void kkeys_restore_cur_pos(long lSavedCurPos) 78 { 79 _GoToROffset(lSavedCurPos); 80 } 81 64 82 65 83 _command kkeys_switch_lines() … … 149 167 _command boxer_paste() 150 168 { 151 int rc; 152 offset = _QROffset(); 153 message(offset); 154 rc = paste(); 155 _GoToROffset(offset); 169 long lSavedCurPos = kkeys_save_cur_pos() 170 paste(); 171 kkeys_restore_cur_pos(lSavedCurPos); 156 172 } 157 173 … … 248 264 249 265 266 #if __VERSION__ >= 14.0 267 _command kkeys_gen_uuid() 268 { 269 _str uuid = guid_create_string('G'); 270 uuid = lowcase(uuid); 271 272 long lSavedCurPos = kkeys_save_cur_pos(); 273 _insert_text(uuid); 274 kkeys_restore_cur_pos(lSavedCurPos); 275 } 276 #endif 277 278 250 279 void nop() 251 280 {
Note:
See TracChangeset
for help on using the changeset viewer.