fbpdf: switch keys for aligning to edges and glyphs
authorAli Gholami Rudi <ali@rudi.ir>
Sat, 23 Mar 2013 04:31:28 +0000 (23 09:01 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Sat, 23 Mar 2013 04:31:28 +0000 (23 09:01 +0430)
[/] and {/} commands are swapped.

README
fbpdf.c

diff --git a/README b/README
index 00f73f6..06fb8e8 100644 (file)
--- 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 (file)
--- 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'):