]> ruderich.org/simon Gitweb - fcscs/fcscs.git/commitdiff
extend_match: replace "^" mapping with "0"
authorSimon Ruderich <simon@ruderich.org>
Thu, 28 Jan 2016 17:26:08 +0000 (18:26 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 28 Jan 2016 17:26:08 +0000 (18:26 +0100)
^ moves to the beginning of indentation in Vi, not to the beginning of
the line.

bin/fcscs

index d6a5878a6dcf51e3e911bde3748bcd64a1fdcb52..e3d39cb7ae5251b590451df7e853deb202dccbd6 100755 (executable)
--- a/bin/fcscs
+++ b/bin/fcscs
@@ -650,7 +650,7 @@ sub extend_match {
         } elsif ($char eq 'E') { # select current WORD (only right)
             extend_match_regex_right($line, $match, qr/\S+/);
 
         } elsif ($char eq 'E') { # select current WORD (only right)
             extend_match_regex_right($line, $match, qr/\S+/);
 
-        } elsif ($char eq '^') { # select to beginning of line
+        } elsif ($char eq '0') { # select to beginning of line
             extend_match_regex_left($line, $match, qr/.+/);
         } elsif ($char eq '$') { # select to end of line
             extend_match_regex_right($line, $match, qr/.+/);
             extend_match_regex_left($line, $match, qr/.+/);
         } elsif ($char eq '$') { # select to end of line
             extend_match_regex_right($line, $match, qr/.+/);
@@ -767,7 +767,7 @@ configurable at the moment):
 
 =item B<E> extend WORD to the right
 
 
 =item B<E> extend WORD to the right
 
-=item B<^> extend to beginning of line
+=item B<0> extend to beginning of line
 
 =item B<$> extend to end of line
 
 
 =item B<$> extend to end of line