From ripley at stats.ox.ac.uk  Mon Dec  8 13:02:52 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Dec  8 13:01:51 2003
Subject: [Rd] rgui transpose-chars problem (PR#5593)
In-Reply-To: <20031208041343.E9C53ED8F@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.44.0312081159370.19038-100000@gannet.stats>

Thank you, now incorporated in R-patched.

For future reference, could you please include the line numbers for
diffs in bug reports, so patch will work?

On Mon, 8 Dec 2003 nakama@ki.rim.or.jp wrote:

> Full_Name: Eiji Nakama
> Version: 1.8.1
> OS: Windows2000(Japan)
> Submission from: (NULL) (219.117.236.13)
> 
> 
> I type typo sl().
> cursole move `l` position moved.
> type C-t not change.
> It operated in rterm.
> 
> --- src/gnuwin32/console.c.orig
> +++ src/gnuwin32/console.c
>             case CHARTRANS:
> -               if(cur_pos < 2) break;
> +               if(cur_pos < 1) break;
> +               if(cur_pos >= max_pos) break;
>                 cur_char = cur_line[cur_pos];
>                 cur_line[cur_pos] = cur_line[cur_pos-1];
>                 cur_line[cur_pos-1] = cur_char;
>                 break;

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] rgui transpose-chars problem (PR#5593)
Prof Brian Ripley