Control-Z bug fix

* Fix for seg fault when pressing ctrl-Z immediately after
    double Escape
pull/2/head
David Freese 2011-09-16 18:16:44 -05:00
rodzic c565815d29
commit 5a9607ae8e
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -273,6 +273,7 @@ void Fl_Text_Buffer_mod::replace( int start, int end, const char *s ) {
// Range check...
if (!s) return;
if (start < 0) start = 0;
if (end < 0) end = 0;
if (end > mLength) end = mLength;
call_predelete_callbacks( start, end-start );

Wyświetl plik

@ -335,6 +335,8 @@ void Fl_Text_Buffer_mod::replace(int start, int end, const char *text)
return;
if (start < 0)
start = 0;
if (end < 0)
end = 0;
if (end > mLength)
end = mLength;