From 1ee401e18366924ae8e9d931a7526866c48e6ea3 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 2 Aug 2015 11:37:35 +0200 Subject: [PATCH] Minor fix to go to line. --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 8f78129..86395cd 100644 --- a/src/window.cc +++ b/src/window.cc @@ -501,7 +501,7 @@ void Window::goto_line_entry() { auto buffer=notebook.get_current_view()->get_buffer(); try { auto line=stoul(content); - if(line>0 && (int)line<=buffer->get_line_count()) { + if(line>0 && line<=(unsigned long)buffer->get_line_count()) { line--; buffer->place_cursor(buffer->get_iter_at_line(line)); while(gtk_events_pending())