Ticket #2544 (closed defect: fixed)
search string with leading space
Reported by: | victor-homyakov | Owned by: | slavazanko |
---|---|---|---|
Priority: | major | Milestone: | 4.8.0-pre1 |
Component: | mc-config-ini | Version: | 4.7.5 |
Keywords: | Cc: | gotar@… | |
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master committed-stable |
Description
What version of Midnight Commander is used?
$ mc -V
GNU Midnight Commander, версия 4.7.5
Скомпилирован с библиотекой GLib версии 2.20.1
С библиотекой S-Lang и с базой данных terminfo
Со встроенным редактором
C поддержкой внутренней командной оболочки
С поддержкой фоновых операций
С поддержкой мыши в xterm
С поддержкой событий X11
С поддержкой интернационализации
С поддержкой многих кодировок
Виртуальная файловая система: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Тип данных: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
What steps will reproduce the problem?
- View some text (log) file (F3), or edit (F4).
- Open search dialog (F7).
- Enter string starting with space and ending with space (I used " ERROR " without quotes), press Enter
- Press F7 to open search dialog again.
What is the expected output?
Original string in search dialog (" ERROR " without quotes)
What do you see instead?
"ERROR " (without leading space!)
Change History
comment:1 Changed 14 years ago by andrew_b
- Component changed from mc-search to mc-config-ini
- Milestone changed from 4.8 to 4.8.0-pre1
comment:2 Changed 14 years ago by slavazanko
- Status changed from new to accepted
- Owner set to slavazanko
comment:3 Changed 14 years ago by slavazanko
- severity changed from no branch to on review
created branch 2544_search_trim_leading_spaces
Initial changeset:c43462479d7736b6fabeae0d93909f1bba5ebcb3
Review, please.
comment:5 Changed 14 years ago by slavazanko
- Votes for changeset angel_il deleted
- severity changed from on review to on rework
Sorry, have troubles with double encoding while save/load history
comment:6 Changed 14 years ago by slavazanko
- severity changed from on rework to on review
New initial changeset:3d0ab70af5d36d8391505d0fdefea5106da9e616
Review again, please.
comment:8 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:9 Changed 14 years ago by slavazanko
- Status changed from accepted to testing
- Keywords stable-candidate added
- Votes for changeset changed from andrew_b angel_il to committed-master
- Resolution set to fixed
- severity changed from approved to merged
Merged in master. Merge changeset:417d5504c1c9c5bc91af5924e577a404ff9c1756
comment:10 Changed 14 years ago by slavazanko
- Status changed from testing to closed
- Keywords stable-candidate removed
- Votes for changeset changed from committed-master to committed-master committed-stable
Cherry-picked to stable. changeset:84cb81e50bacf4f7e1f69df066da4051cc1cdceb
Leading spaces are stripped when config is read from file.