diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2008-05-02 19:45:15 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2008-05-02 19:45:15 +0400 |
commit | b846e7a3bf089de6808f517ec17c2cb447f764be (patch) | |
tree | dfd05046ecdd4fe898a12783f400aab585cdedf7 /source | |
parent | e1090eed41a7dae8a159cb04030a3c126f53dfd8 (diff) |
fix for #7314
solution provided by Leandro Inocencio
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index b6552be93a9..d15160054ac 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -2037,6 +2037,7 @@ void txt_delete_char (Text *text) if (txt_has_sel(text)) { /* deleting a selection */ txt_delete_sel(text); + return; } else if (text->curc== text->curl->len) { /* Appending two lines */ if (text->curl->next) { @@ -2071,6 +2072,7 @@ void txt_backspace_char (Text *text) if (txt_has_sel(text)) { /* deleting a selection */ txt_delete_sel(text); + return; } else if (text->curc==0) { /* Appending two lines */ if (text->curl->prev) { |