- fixed: horizontal input scrolling was broken

Mon, 15 Dec 2014 23:58:01 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 15 Dec 2014 23:58:01 +0200
changeset 49
9e0f26f020e1
parent 48
02009f1ec2b7
child 50
874bbfa55da8

- fixed: horizontal input scrolling was broken

sources/interface.cpp file | annotate | diff | comparison | revisions
--- a/sources/interface.cpp	Mon Dec 15 22:36:14 2014 +0200
+++ b/sources/interface.cpp	Mon Dec 15 23:58:01 2014 +0200
@@ -485,7 +485,7 @@
 
 	// Render the input string
 	mvhline (LINES - 2, 0, ' ', COLS);
-	mvprintw (y, prompt.length() + 1, "%s", displayString.chars());
+	mvprintw (y, prompt.length() + 1, "%s", displayString.mid (start, end).chars());
 
 	// Render the prompt
 	attron (promptColor);

mercurial