From 524d2c01df24bffec726dc03ebc8a37129ae7f14 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 28 Jan 2016 18:26:08 +0100 Subject: [PATCH] extend_match: replace "^" mapping with "0" ^ moves to the beginning of indentation in Vi, not to the beginning of the line. --- bin/fcscs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2