changeset 14228:0beb62668d69

Use correct plural for dbstatus if there is more than 1 breakpoint set in file. * debug.cc (dbstatus): Use correct plural if there is more than 1 breakpoint in file.
author Rik <octave@nomad.inbox5.com>
date Wed, 18 Jan 2012 21:17:14 -0800
parents c24833c6ebc2
children 741340c02522
files src/debug.cc
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/debug.cc	Wed Jan 18 21:17:14 2012 -0800
+++ b/src/debug.cc	Wed Jan 18 21:17:14 2012 -0800
@@ -655,12 +655,16 @@
       for (bp_table::fname_line_map_iterator it = bp_list.begin ();
            it != bp_list.end (); it++)
         {
-          octave_stdout << "breakpoint in " << it->first << " at line(s) ";
-
           bp_table::intmap m = it->second;
 
           size_t nel = m.size ();
 
+          octave_stdout << "breakpoint in " << it->first;
+          if (nel > 1)
+            octave_stdout << " at lines ";
+          else
+            octave_stdout << " at line ";
+
           for (size_t j = 0; j < nel; j++)
             octave_stdout << m[j] << ((j < nel - 1) ? ", " : ".");