]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/source-file.cc
changes: mention that decimal numbers can be written without #
[lilypond.git] / lily / source-file.cc
index 88ee243630b46457b6b50c36ac4f32e54bc225b9..6ecedc9854f1880df2106802053df8dfa0aadb92 100644 (file)
@@ -182,7 +182,7 @@ Source_file::file_line_column_string (char const *context_str0) const
       get_counts (context_str0, &l, &ch, &col, &offset);
 
       return name_string () + ":" + to_string (l)
-             + ":" + to_string (col);
+             + ":" + to_string (col + 1);
     }
 }
 
@@ -290,7 +290,7 @@ Source_file::get_counts (char const *pos_str0,
       // called in mid-character, the results are somewhat arbitrary,
       // but there is no really sane definition anyway.
       if ((*line_chars & 0xc0) == 0x80)
-       continue;
+        continue;
 
       if (*line_chars == '\t')
         (*column) = (*column / 8 + 1) * 8;