Browse Source

Fixed latexindent selection formatting

merge-requests/413/head
eidheim 4 years ago
parent
commit
485a7f5eb2
  1. 2
      src/source.cpp

2
src/source.cpp

@ -1221,7 +1221,7 @@ void Source::View::setup_format_style(bool is_generic_view) {
if(!ignore_selection && get_buffer()->get_has_selection()) { if(!ignore_selection && get_buffer()->get_has_selection()) {
Gtk::TextIter start, end; Gtk::TextIter start, end;
get_buffer()->get_selection_bounds(start, end); get_buffer()->get_selection_bounds(start, end);
command += " n " + std::to_string(start.get_line() + 1) + '-' + std::to_string(end.get_line() + 1); command += " -n " + std::to_string(start.get_line() + 1) + '-' + std::to_string(end.get_line() + 1);
} }
auto search_path = file_path.parent_path(); auto search_path = file_path.parent_path();

Loading…
Cancel
Save