From 61edd2a9fc2136b1aff6e5aeedc2b9183a1bc892 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 23 Mar 2013 09:01:28 +0430 Subject: [PATCH] fbpdf: switch keys for aligning to edges and glyphs [/] and {/} commands are swapped. --- README | 8 ++++---- fbpdf.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README b/README index 00f73f6..06fb8e8 100644 --- a/README +++ b/README @@ -38,10 +38,10 @@ j scroll down k scroll up h scroll left l scroll right -[ align with the leftmost character on the page -] align with the rightmost character on the page -{ align with the left edge of the page -} align with the right edge of the page +[ align with the left edge of the page +] align with the right edge of the page +{ align with the leftmost character on the page +} align with the rightmost character on the page H show top M show middle L show bottom diff --git a/fbpdf.c b/fbpdf.c index 2854f72..0fe35a4 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -251,16 +251,16 @@ static void mainloop(void) case CTRL('u'): head -= fb_rows() * getcount(1) - step; break; - case '{': + case '[': left = leftmost(0); break; - case '}': + case ']': left = rightmost(0) - fb_cols(); break; - case '[': + case '{': left = leftmost(1) - hstep / 2; break; - case ']': + case '}': left = rightmost(1) + hstep / 2 - fb_cols(); break; case CTRLKEY('l'): -- 2.11.4.GIT