[yast-commit] r61886 - /trunk/ncurses/src/NCTextPad.cc
Author: gs Date: Tue Apr 27 15:12:29 2010 New Revision: 61886 URL: http://svn.opensuse.org/viewcvs/yast?rev=61886&view=rev Log: do not append \n after the very last line (bnc #573553) Modified: trunk/ncurses/src/NCTextPad.cc Modified: trunk/ncurses/src/NCTextPad.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTextPad.cc?rev=61886&r1=61885&r2=61886&view=diff ============================================================================== --- trunk/ncurses/src/NCTextPad.cc (original) +++ trunk/ncurses/src/NCTextPad.cc Tue Apr 27 15:12:29 2010 @@ -534,9 +534,12 @@ ret += wch[0]; } - ret += L"\n"; - ++l; + // do not append \n after the very last line (bnc #573553) + if ( l < lines.size() ) + { + ret += L"\n"; + } } return ret; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org