@@ -256,11 +256,6 @@ App_Init_Sig(app_init){
256
256
global_history_init (&models->global_history );
257
257
text_layout_init (tctx, &models->text_layouts );
258
258
259
- // NOTE(allen): clipboard setup
260
- models->working_set .clipboard_max_size = ArrayCount (models->working_set .clipboards );
261
- models->working_set .clipboard_size = 0 ;
262
- models->working_set .clipboard_current = 0 ;
263
-
264
259
// NOTE(allen): style setup
265
260
{
266
261
Scratch_Block scratch (tctx);
@@ -328,7 +323,7 @@ App_Step_Sig(app_step){
328
323
Models *models = (Models*)base_ptr;
329
324
330
325
Mutex_Lock file_order_lock (models->working_set .mutex );
331
- Scratch_Block scratch (tctx, Scratch_Share );
326
+ Scratch_Block scratch (tctx);
332
327
333
328
models->next_animate_delay = max_u32;
334
329
models->animate_next_frame = false ;
@@ -339,11 +334,8 @@ App_Step_Sig(app_step){
339
334
models->input = input;
340
335
341
336
// NOTE(allen): OS clipboard event handling
342
- String_Const_u8 clipboard = input->clipboard ;
343
- if (clipboard.str != 0 ){
344
- String_Const_u8 *dest = working_set_next_clipboard_string (&models->heap , &models->working_set , clipboard.size );
345
- dest->size = eol_convert_in ((char *)dest->str , (char *)clipboard.str , (i32)clipboard.size );
346
- co_send_core_event (tctx, models, CoreCode_NewClipboardContents, *dest);
337
+ if (input->clipboard .str != 0 ){
338
+ co_send_core_event (tctx, models, CoreCode_NewClipboardContents, input->clipboard );
347
339
}
348
340
349
341
// NOTE(allen): reorganizing panels on screen
@@ -378,7 +370,6 @@ App_Step_Sig(app_step){
378
370
system_cli_begin_update (cli);
379
371
if (system_cli_update_step (cli, dest, max, &amount)){
380
372
if (file != 0 && amount > 0 ){
381
- amount = eol_in_place_convert_in (dest, amount);
382
373
output_file_append (tctx, models, file, SCu8 (dest, amount));
383
374
edited_file = true ;
384
375
}
0 commit comments