disable blank-hilite at end of file before point

This commit is contained in:
Charlie Gordon 2021-02-04 21:16:13 +01:00
commit e7f2307d08
3 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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

2
qe.c
View file

@ -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++)