diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-02-03 14:45:23 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-02-03 14:45:23 +0900 |
commit | 6268dc32e49a599ebd000d7300715c0d832c0734 (patch) | |
tree | 1a921318e4c2720e5c4510892882a78db5a2a936 /src | |
parent | e94051dd86fde0eb13993c32a99cb463b8a5b724 (diff) |
terminology - fix double click selection and jed display
this fixes breaks introduced by
e94051dd86fde0eb13993c32a99cb463b8a5b724 (the previous commit).
latest commit: e94051dd86fde0eb13993c32a99cb463b8a5b724
breaks 2 things.
1. double-click to select a "word" is broken. the right end of the selection is
stuck at the point where the cursor is, not the right end of the word. try it.
at least that is what i see. either way double-click to select a word is now
broken. ;(
2. what used to be black whitespace bg is now "empty" chars (so i see
terminology bg). this breaks jed output pretty badly.
see...
working:
http://www.enlightenment.org/ss/e-54d05f357a3391.24747752.png
not working:
http://www.enlightenment.org/ss/e-54d05f672a4df7.83729511.png
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/termpty.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 63d2c7b..5a6a95d 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c | |||
@@ -631,11 +631,10 @@ termpty_cellrow_get(Termpty *ty, int y, int *wret) | |||
631 | 631 | ||
632 | if (y >= 0) | 632 | if (y >= 0) |
633 | { | 633 | { |
634 | Termcell *cells; | ||
635 | if (y >= ty->h) return NULL; | 634 | if (y >= ty->h) return NULL; |
636 | cells = &(TERMPTY_SCREEN(ty, 0, y)); | 635 | *wret = ty->w; |
637 | *wret = termpty_line_length(cells, ty->w); | 636 | /* fprintf(stderr, "getting: %i (%i, %i)\n", y, ty->circular_offset, ty->h); */ |
638 | return cells; | 637 | return &(TERMPTY_SCREEN(ty, 0, y)); |
639 | } | 638 | } |
640 | if ((y < -ty->backmax) || !ty->back) return NULL; | 639 | if ((y < -ty->backmax) || !ty->back) return NULL; |
641 | tssrc = &(ty->back[(ty->backmax + ty->backpos + y) % ty->backmax]); | 640 | tssrc = &(ty->back[(ty->backmax + ty->backpos + y) % ty->backmax]); |