Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Thompson <quornian@googlemail.com>2008-06-04 20:03:19 +0400
committerIan Thompson <quornian@googlemail.com>2008-06-04 20:03:19 +0400
commitec4b6ba3f3d80113e422aef721389aac74bc66c5 (patch)
tree7f7444bbb748a0854c1cafb2c08e7c50232da109 /source/blender/blenkernel/intern/text.c
parent2dcab87383843bc02f0ad12fa7ed1bebf2c86f58 (diff)
Fixed unreported bug: Backspace at top of text pushed newline onto undo stack
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index af37f513ff6..337dba11d59 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -2075,13 +2075,13 @@ void txt_backspace_char (Text *text)
return;
}
else if (text->curc==0) { /* Appending two lines */
- if (text->curl->prev) {
- text->curl= text->curl->prev;
- text->curc= text->curl->len;
-
- txt_combine_lines(text, text->curl, text->curl->next);
- txt_pop_sel(text);
- }
+ if (!text->curl->prev) return;
+
+ text->curl= text->curl->prev;
+ text->curc= text->curl->len;
+
+ txt_combine_lines(text, text->curl, text->curl->next);
+ txt_pop_sel(text);
}
else { /* Just backspacing a char */
int i= text->curc-1;