Add ability to search backwards through command
history for a particular substring, using ctrl-r key. llvm-svn: 130871
This commit is contained in:
		
							parent
							
								
									f7d4598b74
								
							
						
					
					
						commit
						0de8d4503b
					
				| 
						 | 
					@ -185,10 +185,11 @@ IOChannel::IOChannel
 | 
				
			||||||
    // Source $PWD/.editrc then $HOME/.editrc
 | 
					    // Source $PWD/.editrc then $HOME/.editrc
 | 
				
			||||||
    ::el_source (m_edit_line, NULL);
 | 
					    ::el_source (m_edit_line, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    el_set(m_edit_line, EL_ADDFN, "lldb_complete",
 | 
					    el_set (m_edit_line, EL_ADDFN, "lldb_complete",
 | 
				
			||||||
            "LLDB completion function",
 | 
					            "LLDB completion function",
 | 
				
			||||||
            IOChannel::ElCompletionFn);
 | 
					            IOChannel::ElCompletionFn);
 | 
				
			||||||
    el_set(m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
 | 
					    el_set (m_edit_line, EL_BIND, m_completion_key, "lldb_complete", NULL);
 | 
				
			||||||
 | 
					    el_set (m_edit_line, EL_BIND, "^r", "em-inc-search-prev", NULL);  // Cycle through backwards search, entering string
 | 
				
			||||||
    el_set (m_edit_line, EL_CLIENTDATA, this);
 | 
					    el_set (m_edit_line, EL_CLIENTDATA, this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    assert (m_history);
 | 
					    assert (m_history);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue