Ticket #2344 (closed defect: fixed)
Fix line jump when started as editor
Reported by: | zaytsev | Owned by: | zaytsev |
---|---|---|---|
Priority: | minor | Milestone: | 4.7.5 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: | committed-master committed-stable |
Description
Two common line jump protocols supported by mc are:
- mcedit +lineno file
- mcedit file:lineno
Unfortunately, in the implementation of the first protocol, if line
number equals to zero, which is often used to position the cursor at the beginning of the file, it is completely ignored and file "+0" is opened instead.
This patch fixes aforementioned issue.
Attachments
Change History
comment:1 Changed 14 years ago by zaytsev
- Priority changed from major to minor
- severity changed from no branch to on review
Changed 14 years ago by zaytsev
Patch for the stable branch
comment:4 Changed 14 years ago by angel_il
- Votes for changeset changed from andrew_b to andrew_b angel_il
- severity changed from on review to approved
comment:5 Changed 14 years ago by zaytsev
- Votes for changeset changed from andrew_b angel_il to committed-master
- severity changed from approved to merged
Committed to master. Merge changeset: 7133f4bb6dd2c890500b3faa1c1f7f0bd8f1630a.
comment:6 Changed 14 years ago by zaytsev
- Keywords stable-candidate removed
- Status changed from new to closed
- Votes for changeset changed from committed-master to committed-master committed-stable
- Resolution set to fixed
Cherry-picked to 4.7.0-stable, changeset: 7c3d8ef3f692f5cafdfbbcae9e51e78c14c66b2d.
Note: See
TracTickets for help on using
tickets.
Branch: 2344_fix_line_jump (parent: master)
Changeset: 73ee1d04d32991d5a003ccb1039f2d3fd86ccb0b