 (defvar cscope-command-args nil
   "Internal variable for holding major command args to pass to cscope.")
 (make-variable-buffer-local 'cscope-command-args)
+
+
+(defvar cscope-start-directory nil
+  "Internal variable used to save the initial start directory.
+The results buffer gets reset to this directory when a search has
+completely finished.")
+(make-variable-buffer-local 'cscope-start-directory)
 
 
 (defvar cscope-search-list nil

	 (cscope-show-message (car cscope-first-match)
			      (cdr cscope-first-match) window)
	 ))
     ( update-window
       (set-window-point window cscope-first-match-point))
     )
    ))

		    ))
	      (setq cscope-process nil
		    modeline-process ": Search complete")
	      (if cscope-start-directory
		  (setq default-directory cscope-start-directory))
	      )
	    ))
	(set-buffer-modified-p nil)
