File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -64,18 +64,6 @@ fn main() {
64
64
main_loop ( & mut core) ;
65
65
}
66
66
67
- fn set_history ( core : & mut ShellCore , s : & str ) {
68
- if core. history . len ( ) == 0 {
69
- return ;
70
- }
71
-
72
- core. history [ 0 ] = s. trim_end ( ) . replace ( "\n " , "↵ \0 " ) . to_string ( ) ;
73
- if core. history [ 0 ] . len ( ) == 0
74
- || ( core. history . len ( ) > 1 && core. history [ 0 ] == core. history [ 1 ] ) {
75
- core. history . remove ( 0 ) ;
76
- }
77
- }
78
-
79
67
fn input_interrupt_check ( feeder : & mut Feeder , core : & mut ShellCore ) -> bool {
80
68
if ! core. sigint . load ( Relaxed ) { //core.input_interrupt {
81
69
return false ;
@@ -103,10 +91,7 @@ fn main_loop(core: &mut ShellCore) {
103
91
}
104
92
105
93
match Script :: parse ( & mut feeder, core) {
106
- Some ( mut s) => {
107
- s. exec ( core) ;
108
- set_history ( core, & s. get_text ( ) ) ;
109
- } ,
94
+ Some ( mut s) => s. exec ( core) ,
110
95
None => { } ,
111
96
}
112
97
core. sigint . store ( false , Relaxed ) ;
You can’t perform that action at this time.
0 commit comments