From: Simon Ruderich Date: Thu, 28 Jan 2016 17:26:08 +0000 (+0100) Subject: extend_match: replace "^" mapping with "0" X-Git-Url: https://ruderich.org/simon/gitweb/?p=fcscs%2Ffcscs.git;a=commitdiff_plain;h=524d2c01df24bffec726dc03ebc8a37129ae7f14 extend_match: replace "^" mapping with "0" ^ moves to the beginning of indentation in Vi, not to the beginning of the line. --- diff --git a/bin/fcscs b/bin/fcscs index d6a5878..e3d39cb 100755 --- 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 '^') { # 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/.+/); @@ -767,7 +767,7 @@ configurable at the moment): =item B 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