Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1241233 - Problem with Vim regular expressions when using ^ and | operator
Summary: Problem with Vim regular expressions when using ^ and | operator
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-08 19:34 UTC by Alex Wood
Modified: 2015-09-23 00:22 UTC (History)
3 users (show)

Fixed In Version: 7.4.827-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-23 00:22:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alex Wood 2015-07-08 19:34:15 UTC
Description of problem:
The ^ operator is not working correctly when used after a | operator.

Version-Release number of selected component (if applicable): vim-common-7.4.640-4.fc22.x86_64

How reproducible: Always


Steps to Reproduce:
1. Create a file and add the contents below:
Hello
World

2. Open the file in vim
3. Enter "/^Hello\|^World"

Actual results:
Only the Hello line matches

Expected results:
Both lines match.

Additional info:
The expected behavior was present in vim-common-7.4.475-2.fc20 so a bisect may help narrow down the issue.

This issue is not present in Vim compiled from source with

$ export LDFLAGS="-Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -L/usr/local/lib -Wl,--as-needed -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lcrypt -lutil -lpthread -lc -lm -lnsl -lselinux -lncurses"

$ export CFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"

$ ./configure --prefix='/tmp/vim/dist/' --enable-pythoninterp=dynamic --enable-rubyinterp=dynamic --enable-cscope --enable-multibyte --with-features=huge --with-tlib=ncurses --disable-tclinterp --enable-netbeans --disable-gui

The compiled version is pretty close to the packaged version in terms of flags and such.  The major difference is Perl is enabled in the packaged version (I couldn't figure out how to get those working); and clientserver, clipboard, X11, xfontset, xterm_clipboard, xsmp_interact are enabled with the configuration above.

My suspicion is that perhaps the issue is lurking on one of the patches carried with the package.

Comment 1 Karsten Hopp 2015-08-20 08:50:51 UTC
I'm preparing an update to vim 7.4.827, it seems to fixed there. Please install the new vim from updates-testing when it shows up (1-2 days I think)

Comment 2 Fedora Update System 2015-09-02 11:46:58 UTC
vim-7.4.827-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14209

Comment 3 Fedora Update System 2015-09-23 00:21:26 UTC
vim-7.4.827-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.