XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 596 forks source link

Crash on search #234

Open level-two opened 12 years ago

level-two commented 12 years ago

XCode 4.3.1 Type /abc, then move invisible cursor with arrows 3 symbols left, type backspace, enter App crashes with log:

6/4/12 12:30:43.647 PM Xcode: *\ Assertion failure in -[XVimSearch executeSearch:display:from:inWindow:], /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimSearch.m:46

6/4/12 12:30:43.648 PM Xcode: [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): first letter of search command must be ? or / UserInfo: (null) Hints: None

6/4/12 12:30:44.162 PM Xcode: [MT] DVTAssertions: Backtrace: 0 0x00007fff8f99cfaa exceptionPreprocess (in CoreFoundation) 1 0x00007fff8f243d5e objc_exception_throw (in libobjc.A.dylib) 2 0x00007fff8f99cdfa +[NSException raise:format:arguments:](in CoreFoundation) 3 0x00007fff8f3dd743 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:](in Foundation) 4 0x0000000114943dab -[XVimSearch executeSearch:display:from:inWindow:] at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimSearch.m:38 (in XVim) 5 0x00000001149244bf 49-[XVimNormalEvaluator executeSearch:firstLetter:]_block_invoke_0257 at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimNormalEvaluator.m:715 (in XVim) 6 0x000000011494ee2c -[XVimCommandLineEvaluator eval:inWindow:] at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimCommandLineEvaluator.m:70 (in XVim) 7 0x000000011494c9ff -[XVimWindow handleKeyStroke:] at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimWindow.m:130 (in XVim) 8 0x000000011494c7e5 -[XVimWindow handleKeyEvent:] at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimWindow.m:103 (in XVim) 9 0x000000011491c439 -[XVimCommandField keyDown:] at /Users/user/Temp/JugglerShu-XVim-6d6ecb0/XVim/XVimCommandField.m:82 (in XVim) 10 0x00007fff915acb44 -[NSWindow sendEvent:](in AppKit) 11 0x00007fff9154516d -[NSApplication sendEvent:](in AppKit) 12 0x000000010da581e1 -[IDEApplication sendEvent:](in IDEKit) 13 0x00007fff914db1f2 -[NSApplication run](in AppKit) 14 0x00007fff91759b88 NSApplicationMain (in AppKit) 15 0x000000010d00aeec (in Xcode)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/900208-crash-on-search?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github).
JugglerShu commented 12 years ago

Thansk for the report. I'll see it tonight.