|
30 | 30 | #include "plain_text_source.hh" |
31 | 31 |
|
32 | 32 | #include "base/intern_string.hh" |
33 | | -#include "base/string_util.hh" |
34 | 33 | #include "base/itertools.hh" |
| 34 | +#include "base/string_util.hh" |
35 | 35 | #include "config.h" |
36 | 36 | #include "document.sections.hh" |
37 | 37 | #include "scn/scan.h" |
@@ -178,12 +178,8 @@ plain_text_source::text_value_for_line(textview_curses& tc, |
178 | 178 | value_out = this->tds_lines[row].tl_value.get_string(); |
179 | 179 | this->tds_line_indent_size = compute_indent_size(value_out); |
180 | 180 | if (this->tds_line_indent_size == 0 && value_out.empty()) { |
181 | | - for (auto next = row + 1; |
182 | | - next < (int) this->tds_lines.size(); |
183 | | - ++next) |
184 | | - { |
185 | | - const auto& next_str |
186 | | - = this->tds_lines[next].tl_value.get_string(); |
| 181 | + for (auto next = row + 1; next < (int) this->tds_lines.size(); ++next) { |
| 182 | + const auto& next_str = this->tds_lines[next].tl_value.get_string(); |
187 | 183 | this->tds_line_indent_size = compute_indent_size(next_str) + 1; |
188 | 184 | if (!next_str.empty()) { |
189 | 185 | break; |
@@ -517,7 +513,7 @@ plain_text_source::adjacent_anchor(vis_line_t vl, direction dir) |
517 | 513 | tl.tl_offset, tl.tl_offset + tl.tl_value.al_string.length()); |
518 | 514 |
|
519 | 515 | log_trace("adjacent_anchor: curr path = %s", |
520 | | - fmt::format(FMT_STRING("{}"), path_for_line).c_str()); |
| 516 | + fmt::to_string(path_for_line).c_str()); |
521 | 517 | const auto& md = this->tds_doc_sections; |
522 | 518 | if (path_for_line.empty()) { |
523 | 519 | auto neighbors_res = md.m_sections_root->line_neighbors(vl); |
|
0 commit comments