When invoked from Find File, mcedit does not go to the found text

Bug #732652 reported by mlg7
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: mc

1. start terminal and get some files, for example, git clone git://gittup.org/tup.git; cd tup
2. mc
3. F9 C F
4. Specify search parameters: File Name = "*.c", Content = "handle_file"
5. Enter (start search)
6. Go to line "147:ldpreload.c", press F4
7. see the bug:
Expected: opening the file with the cursor at line 147
Actual: the file is opened with the cursor at line 1

$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$ apt-cache policy mc
mc:
  Installed: 3:4.7.0.6-1
  Candidate: 3:4.7.0.6-1
  Version table:
 *** 3:4.7.0.6-1 0
        500 http://ru.archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
        100 /var/lib/dpkg/status

Just in case, I ^C ^V the screen, but it's the default:

│ ┌────────────────────────── Find File ───────────────────────────┐
│ │ Start at: │
│ │ . [^] [ Tree ] │
│ │ │
│ │ File name: Content: │
│ │ *.c [^] handle_file [^] │
│ │ [x] Case sensitive [x] Case sensitive │
│ │ [x] Using shell patterns [ ] Regular expression │
│ │ [x] Find recursively [ ] First hit │
│ │ [ ] Skip hidden [ ] Whole words │
│ │ [ ] All charsets [ ] All charsets │
│ │ │
│ │ [< OK >] [ Cancel ] │
│ └────────────────────────────────────────────────────────────────┘

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: mc 3:4.7.0.6-1 [modified: usr/share/mc/skins/default.ini]
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Mar 10 18:09:52 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: mc

Revision history for this message
mlg7 (mlg7) wrote :
Revision history for this message
Yury V. Zaytsev (zyv) wrote :

This is not a bug in mc. Select mcedit as the internal editor in mc settings and it will work.

Revision history for this message
Yury V. Zaytsev (zyv) wrote :

The problem is that mc does not know how to pass the information about the selected line on to the external editors from $EDITOR or sensible-editor.

Changed in mc (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.