Introduction
Introduction Statistics Contact Development Disclaimer Help
tled: fix cursor position for ex inputs - neatvi - [fork] simple vi-type editor…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit d66f358f77184dde6bdfe021d09f7f3a01441f1a
parent 7476ff70d0c864ceb797f8d85afe0596e5957e95
Author: Ali Gholami Rudi <[email protected]>
Date: Wed, 13 May 2015 11:10:43 +0430
led: fix cursor position for ex inputs
Diffstat:
M led.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/led.c b/led.c
t@@ -107,11 +107,11 @@ static void led_printparts(char *pref, char *main, char …
} else {
int len = sbuf_len(ln);
sbuf_str(ln, keymap(led_kmap, 'a'));
- pos = ren_pos(sbuf_buf(ln), off);
+ pos = ren_cursor(sbuf_buf(ln), ren_pos(sbuf_buf(ln), off));
sbuf_cut(ln, len);
}
led_print(sbuf_buf(ln), -1);
- term_pos(-1, led_pos(sbuf_buf(ln), ren_cursor(sbuf_buf(ln), pos)));
+ term_pos(-1, led_pos(sbuf_buf(ln), pos));
sbuf_free(ln);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.