Menu

#1806 Can't refuse opening changed large file

Bug
open-accepted
5
2016-01-21
2016-01-20
b2f9h203
No

Let's say I open test.txt which is 100 Bytes large.
Now I do

for (( i = 0; i < 1000000; i++ )); do echo $i >> test.txt; done

Now the file is 6.6MB large. When I switch to scite now

File /tmp/test.txt is 6888895 bytes long, larger than 1024000 bytes limit set in properties. So you still want to open it?

If I click no then the window immediately reappears. My onle option is to kill scite or just open it and hope it is only 6MB large.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2016-01-21
    • labels: --> scite, gtk
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2016-01-21

    On Windows there is a simple WM_ACTIVATEAPP event that can be used to determine when SciTE is being activated which is where these checks are implemented. With GTK+, focus changes are used for a similar purpose but they also fire when focus is being switched from the message box to the main SciTE window which then rechecks the file and redisplays the message box.

    If a bettter application activation event could be used then that would avoid message box loops for this case and for others.

     

Log in to post a comment.