X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Flinedata.h;h=751bc6b5db27284762535b4a2a38784c844c38ef;hp=2510ee72f646ece49d43941b9b85710c3c35cb32;hb=ed3eb506e9a8e6ea871a2eb5818e19ba36f3f277;hpb=52aa842907b31bb56fb5133da3f023b45bd4355f diff --git a/test/linedata.h b/test/linedata.h index 2510ee72..751bc6b5 100644 --- a/test/linedata.h +++ b/test/linedata.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 2009-2010,2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -85,10 +85,8 @@ read_linedata(WINDOW *work) beep(); continue; } - } else if (code != ERR) { - result = (int) ch; - break; } else { + result = (int) ch; break; } }