Ticket #2793 (closed defect: invalid)

Opened 13 years ago

Last modified 13 years ago

search string disappears when trying to search same string as entered before again (using F7)

Reported by: kasdeja Owned by:
Priority: minor Milestone:
Component: mc-core Version:
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

When editing (F4) or viewing (F3) content of file when I'm trying to search for something I'm unable to search again for same string or slightly modified string (I have to enter it from beginning every time I use F7).

I found in menu 'Search again' (F17), so I used function 'Learn keys' to redefine F17 as F12 and using that I'm able to search other occuriencies of string I want to search, but I used to use F7 + Enter. In older version it contained string from previous search (as far as I remember even from search performed on another file), so I would like to see this to work as it worked before (F7 and then Enter for 'Search again', and rembering previously searched string).

GNU Midnight Commander 4.8.3
Built with GLib 2.30.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Change History

comment:1 Changed 13 years ago by andrew_b

  • Priority changed from major to minor
  • Milestone changed from 4.8 to Future Releases

comment:2 in reply to: ↑ description ; follow-up: ↓ 3 Changed 13 years ago by andrew_b

Replying to kasdeja:

I have to enter it from beginning every time I use F7.

Use history.

In older version it contained string from previous search (as far as I remember even from search performed on another file), so I would like to see this to work as it worked before (F7 and then Enter for 'Search again', and rembering previously searched string).

Please describe step-by-step how to reproduce this bug. Everything works fine for me.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 13 years ago by kasdeja

Replying to andrew_b:

Replying to kasdeja:

I have to enter it from beginning every time I use F7.

Use history.

In older version it contained string from previous search (as far as I remember even from search performed on another file), so I would like to see this to work as it worked before (F7 and then Enter for 'Search again', and rembering previously searched string).

Please describe step-by-step how to reproduce this bug. Everything works fine for me.

I made a video showing differences in behaviour of search window in mcedit (I downloaded sources from this site for mc 4.7.4 and 4.8.3, compiled them and run): http://www.youtube.com/watch?v=bAnJLFNrBpw

Basically I open file and want to search something inside. In mc 4.7.4 everything work ok, i press F7, type what I want to search for, and then iterate over found elements by pressing again F7 (in search window string I entered before persists) and then Enter.

In mc 4.8.3 search window doesn't work that way. After I do first search (press F7 and type what I want to search for), I'm unable do next ones, because if I hit F7 string I typed before got cleared.

comment:4 in reply to: ↑ 3 Changed 13 years ago by angel_il

Please describe step-by-step how to reproduce this bug. Everything works fine for me.

I made a video showing differences in behaviour of search window in mcedit (I downloaded sources from this site for mc 4.7.4 and 4.8.3, compiled them and run):

ok, do follow
1) cd ~/Downloads/mc-4.8.3/bin/
2) ./mc -F |grep 'Config director'
3) check right for Config directory: ..../.config/mc/ and file 'history'

comment:5 Changed 13 years ago by kasdeja

Ok, I've checked that directories. Somehow they had only root-access (mc, history) only rights, I've deleted them, and mc recreated them with proper permissions (user) and this fixed my problem.

Sorry, for causing troubles... you can delete this ticket.

comment:6 Changed 13 years ago by andrew_b

  • Status changed from new to closed
  • Component changed from mcedit to mc-core
  • Version 4.8.3 deleted
  • Resolution set to invalid
  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.