Mercurial > projects > pwm
comparison io.c @ 39:131c35592054
Allow keybinding customizations in ~/.teclarc
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Thu, 08 Aug 2019 22:48:09 +0200 |
parents | ec01c579024a |
children |
comparison
equal
deleted
inserted
replaced
38:8b55f7b1c6b3 | 39:131c35592054 |
---|---|
114 if (gl == NULL) { | 114 if (gl == NULL) { |
115 gl = gl_private = new_GetLine(buf_size - 1, 0); | 115 gl = gl_private = new_GetLine(buf_size - 1, 0); |
116 if (gl_private == NULL) { | 116 if (gl_private == NULL) { |
117 err(1, "new_GetLine"); | 117 err(1, "new_GetLine"); |
118 } | 118 } |
119 gl_configure_getline(gl_private, NULL, NULL, "~/.teclarc"); | |
119 gl_catch_blocked(gl_private); | 120 gl_catch_blocked(gl_private); |
120 } | 121 } |
121 | 122 |
122 gl_state_of_history(gl, &state); | 123 gl_state_of_history(gl, &state); |
123 gl_toggle_history(gl, with_history); | 124 gl_toggle_history(gl, with_history); |
166 | 167 |
167 gl = new_GetLine(buf_size - 1, 0); | 168 gl = new_GetLine(buf_size - 1, 0); |
168 if (gl == NULL) { | 169 if (gl == NULL) { |
169 err(1, "new_GetLine"); | 170 err(1, "new_GetLine"); |
170 } | 171 } |
172 gl_configure_getline(gl, NULL, NULL, "~/.teclarc"); | |
171 /* disable default filename completion */ | 173 /* disable default filename completion */ |
172 gl_customize_completion(gl, NULL, io_gl_complete_nothing); | 174 gl_customize_completion(gl, NULL, io_gl_complete_nothing); |
173 gl_echo_mode(gl, 0); | 175 gl_echo_mode(gl, 0); |
174 | 176 |
175 password_buf = xmalloc(buf_size); | 177 password_buf = xmalloc(buf_size); |