[gnome-builder] vim: Remove unneeded MAX macro in move_page up
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: Remove unneeded MAX macro in move_page up
- Date: Sun, 12 Oct 2014 17:29:12 +0000 (UTC)
commit 7c0fc4c26d14a33efe51fe299d57ccdbf6f91dce
Author: Hashem Nasarat <hashem riseup net>
Date: Sun Oct 12 12:43:41 2014 -0400
vim: Remove unneeded MAX macro in move_page up
It's never going to be less than 0.
https://bugzilla.gnome.org/show_bug.cgi?id=738401
src/editor/gb-editor-vim.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 9b958a9..7770c42 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -2471,7 +2471,7 @@ gb_editor_vim_move_page (GbEditorVim *vim,
{
case GB_EDITOR_VIM_PAGE_UP:
yalign = 1.0;
- line = MAX (0, gtk_text_iter_get_line (&iter_top) + SCROLL_OFF);
+ line = gtk_text_iter_get_line (&iter_top) + SCROLL_OFF;
break;
case GB_EDITOR_VIM_PAGE_DOWN:
yalign = 0.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]