From: Zdeněk Šustr Date: Fri, 18 Mar 2011 11:06:22 +0000 (+0000) Subject: When editing ChangeLog position the cursor to the new tag and redraw screen so that... X-Git-Tag: glite-jobid-api-c_R_2_0_2_2~3 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=25a6866d85138cb37af91a63beb115987053cbb3;p=jra1mw.git When editing ChangeLog position the cursor to the new tag and redraw screen so that it's in the midlle. --- diff --git a/org.glite.lb/etics-tag.pl b/org.glite.lb/etics-tag.pl index 7c17732..9c05576 100755 --- a/org.glite.lb/etics-tag.pl +++ b/org.glite.lb/etics-tag.pl @@ -230,12 +230,7 @@ usage: $0 [-i maj|min|rev|age|none|] [-g] [-c > $tmpChangeLog"); system("echo \"\" >> $tmpChangeLog");} else { system("cvs log -S -N -r" . "$current_tag" . ":: $module | egrep -v \"^locks:|^access list:|^keyword substitution:|^total revisions:|^branch:|^description:|^head:|^RCS file:|^date:|^---|^===|^revision \" >> $tmpChangeLog"); } - $lastline=`cat $tmpChangeLog | wc -l`; - chomp($lastline); - - printf("vim +$lastline +$editline $tmpChangeLog\n"); - - $ChangeLogRet=system("vim +$editline $tmpChangeLog"); + $ChangeLogRet=system("vim +$editline -c \"norm z.\" $tmpChangeLog"); } printf("Modified ChangeLog ready, ret code: $ChangeLogRet\n");