diff --git a/README.md b/README.md index 2a0c20d..32a63fa 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ highly optimized internal representation and memory mapping for large files. - C mode: coloring with immediate update, auto-indent, automatic tags. -- Shell mode: full color VT100 emulation so that your shell works exactly +- Shell mode: full color VT100 terminal emulation so your shell works exactly as you expect. Compile mode with colorized error messages, automatic -error message parser jumps to next/prev error, works with grep too. +error message parser jumps to next/previous error, works with grep too. The shell buffer is a fully functional terminal: you can run qemacs, vim or even emacs recursively! @@ -45,7 +45,7 @@ included with double width glyphs. anti-aliased font display. - Bitmap images are displayed on graphics displays and as ASCII colored text -on terminals, which is handy when browsing files over an ssh terminal connection. +on text terminals, which is handy when browsing files over an ssh connection. (QEmacs uses the public domain [`stb_image`](https://github.com/nothings/stb/blob/master/stb_image.h) package for image conversions. ## Building QEmacs diff --git a/TODO.md b/TODO.md index 12e64c1..4917fd4 100644 --- a/TODO.md +++ b/TODO.md @@ -12,6 +12,10 @@ * files: reload modified file upon change if untouched since load * improve **README.md** * move documentation to markdown +* tack library of ancillary files at the end of the binary: + - add protocol to read from library (lib:xxx) + - add html.min.css and docbook.min.css to library + - append lib: to default QE_PATH * clean up ancillary files ## Recent bugs and ideas @@ -56,10 +60,6 @@ * tags: remove tags for modified line * undo: undo some cursor movements * xml: merge xml and htmlsrc modes, add submodes for plist and other config files -* tack library of ancillary files at the end of the binary: - - add protocol to read from library (lib:xxx) - - add html.min.css and docbook.min.css to library - - append lib: to default QE_PATH ## Priority 0 diff --git a/qe.c b/qe.c index 1d43ee2..0b436ce 100644 --- a/qe.c +++ b/qe.c @@ -4202,7 +4202,7 @@ static int syntax_get_colorized_line(EditState *s, *offsetp = eb_next_line(b, offset); } buf[len] = '\0'; - if (s->offset >= offset && s->offset < *offsetp) { + if (s->offset >= offset && s->offset < *offsetp + (s->offset == s->b->total_size)) { /* compute cursor position */ int offset1 = offset; for (cctx.cur_pos = 0; offset1 < s->offset; cctx.cur_pos++)