*** ./kate/utils/katesearchbar.cpp.old	2009-09-28 13:45:07.000000000 +0900
--- ./kate/utils/katesearchbar.cpp	2009-09-28 13:50:35.000000000 +0900
***************
*** 667,672 ****
--- 679,692 ----
      const bool shiftDown = (modifiers & Qt::ShiftModifier) != 0;
      const bool controlDown = (modifiers & Qt::ControlModifier) != 0;
  
+ #ifndef	ORIGINAL_CODE
+     // if vi input mode is active, the search box should be closed when hitting enter
+     if (view()->viInputMode()) {
+         emit hideMe();
+         return;
+     }
+ #endif
+ 
      if (shiftDown) {
          // Shift down, search backwards
          if (m_powerUi != NULL) {
***************
*** 1142,1148 ****
--- 1158,1168 ----
          }
      }
  
+ #ifdef	ORIGINAL_CODE
      if (replacement != NULL)
+ #else
+     if (replacement == NULL)
+ #endif
          foreach (Range r, highlightRanges) {
              highlightMatch(r);
          }
