projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f40d09
)
fixed bug with stopping editor text input before reaching the last line
author
Holger Schemel
<info@artsoft.org>
Fri, 16 Nov 2018 07:50:26 +0000
(08:50 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 16 Nov 2018 07:50:26 +0000
(08:50 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index c993b6ea5803e052b90f3a1fb037dff3cf60e0e1..2bf5543c8314fa4f345ebc88a4a2968a2141e9cd 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-12411,7
+12411,7
@@
static int DrawLevelText(int sx, int sy, char letter, int mode)
break;
case TEXT_NEWLINE:
- if (sy + 1 < ed_fieldy
- 1 && ly + 1 < lev_fieldy - 1
)
+ if (sy + 1 < ed_fieldy
&& ly + 1 < lev_fieldy
)
DrawLevelText(start_sx, sy + 1, 0, TEXT_SETCURSOR);
else
DrawLevelText(0, 0, 0, TEXT_END);