DeltaEscher / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

VI 'goto line' command moves cursor to line after desired line #395

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open or create a multiple line text file
2. Enable the Vi Emulation input helper.
3.  In the emulated vi command mode, enter 1G to move the cursor to line 1. 

What is the expected output? What do you see instead?

The cursor should move to line 1  upon entering 1G.  As another example, if you 
enter 33G, that 
should move the cursor so that it is on line 33.

Instead, the cursor moves to the line immediately after the one requested.  If 
I enter 1G, the 
cursor moves to line 2.  If I enter 33G, the cursor moves to line 34.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
* I am running on Mac OSX (Leopard, intel)
* I am running version 0.4.95

What method of install was your version installed with (Binary/Source)?
* downloaded binary using built-in update feature, copied to Applications folder

If from source: What version of python and wxPython are you using?

Please provide any additional information below.

Original issue reported on code.google.com by mdebrec...@gmail.com on 30 Jul 2009 at 6:25

GoogleCodeExporter commented 8 years ago
Fixed

corrected off by 1 error in jump to line command.

Original comment by CodyPrec...@gmail.com on 30 Jul 2009 at 7:46

GoogleCodeExporter commented 8 years ago
Sweet -- thanks for the quick fix!  I like the direction that Editra is headed.

Original comment by mdebrec...@gmail.com on 31 Jul 2009 at 1:36