summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/format.cc b/format.cc
index bf769e3e..98bedff5 100644
--- a/format.cc
+++ b/format.cc
@@ -388,6 +388,7 @@ void format_t::format(std::ostream& out_str, const details_t& details) const
}
break;
+#ifdef USE_EDITOR
case element_t::SOURCE:
if (details.entry && details.entry->journal) {
int idx = details.entry->src_idx;
@@ -440,6 +441,7 @@ void format_t::format(std::ostream& out_str, const details_t& details) const
if (details.xact)
out << details.xact->end_line;
break;
+#endif
case element_t::DATE_STRING: {
std::time_t date = 0;