[Cgdb-devel] Patch: Searching & entering :ex commands
Brought to you by:
bobbybrasko,
crouchingturbo
From: Mike M. <mi...@su...> - 2008-05-21 03:24:12
|
Bob, When you get a chance, I'd like you to review the attached patch. It does the following things: 1. Bug fix: If you start searching for something, but abort (hit ESC), the regex_line variable was obliterated, so 'n' or 'N' no longer finds the last searched regex. I renamed regex_line to regex_last, and created a regex_cur for the currently-being-typed regex. Now if you give up searching, you can still 'n' for the last searched string. 2. Bug fix: Start cgdb, hit ESC, start searching for something, hit ESC, hit ':' and the status bar displays :(null). Fixed this. 3. Feature: If you are typing a :ex command or a regex search, and you backspace when the command/regex is empty, the command or search is aborted (like vim does). 4. Fixed a warning about casting pointer to int of different size compiling on a 64-bit platform. I tried to test this well, but I wanted your input before I commit it. Thanks! Mike -- Mike Mueller mi...@su... |