~pyreadline/pyreadline/trunk

« back to all changes in this revision

Viewing changes to pyreadline/modes/emacs.py

  • Committer: Jorgen Stenarson
  • Date: 2011-04-14 16:52:22 UTC
  • Revision ID: jorgen.stenarson@bostream.nu-20110414165222-i77zmr4fjt6jlf0d
Fix for reverse and forward incremental search

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
        self.subsearch_oldprompt = self.prompt
77
77
 
78
 
        if (self.previous_func != self.history_search_forward and
79
 
            self.previous_func != self.history_search_backward):
 
78
        if (self.previous_func != self.reverse_search_history and
 
79
            self.previous_func != self.forward_search_history):
80
80
            self.subsearch_query = self.l_buffer[0:Point].get_line_text()
81
81
 
82
82
        if self.subsearch_direction < 0: