Skip to content

Commit 2764aec

Browse files
committed
Do not try to forward iter less than 1 char
1 parent 79659e8 commit 2764aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Services/Document.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ namespace Scratch.Services {
819819
var text = source_view;
820820
Gtk.TextIter iter;
821821
text.buffer.get_iter_at_line (out iter, start_line - 1);
822-
if (!iter.forward_chars (start_col - 1)) {
822+
if (start_col > 1 && !iter.forward_chars (start_col - 1)) {
823823
return "";
824824
}
825825

0 commit comments

Comments
 (0)