projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2e96d
)
gui: Include line number in error messages generated from syntax windows.
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 11 Mar 2021 03:53:39 +0000
(19:53 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 11 Mar 2021 03:53:39 +0000
(19:53 -0800)
src/ui/gui/psppire-lex-reader.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-lex-reader.c
b/src/ui/gui/psppire-lex-reader.c
index f975fe4501e8d5bfd7cc1d63ba9ab5a2c692219c..e3e966c1a7bf9db35d65afd9a6d7d314af93efed 100644
(file)
--- a/
src/ui/gui/psppire-lex-reader.c
+++ b/
src/ui/gui/psppire-lex-reader.c
@@
-62,6
+62,7
@@
lex_reader_for_gtk_text_buffer (GtkTextBuffer *buffer,
lex_reader_init (&r->reader, &lex_gtk_text_buffer_reader_class);
r->reader.syntax = syntax_mode;
+ r->reader.line_number = gtk_text_iter_get_line (&start) + 1;
r->buffer = buffer;
g_object_ref (buffer);