From 051f633754c6117ae2152a1d48c63036e68a77a2 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 21 Apr 2014 10:39:26 -0400 Subject: [PATCH] Use column option when checking whether to sort by ID --- src/view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view.c b/src/view.c index 4bf8f48..5ca4a95 100644 --- a/src/view.c +++ b/src/view.c @@ -930,7 +930,8 @@ sort_view(struct view *view, bool change_field) while (TRUE) { state->current = state->current->next ? state->current->next : view->columns; - if (get_sort_field(view) == VIEW_COLUMN_ID && !opt_show_id) + if (get_sort_field(view) == VIEW_COLUMN_ID && + !state->current->opt.id.show) continue; break; } -- 2.11.4.GIT