From 090c4463f1dfed23fa12655e6ebe549c88ba78b3 Mon Sep 17 00:00:00 2001 From: fvogel Date: Fri, 7 Sep 2018 20:08:49 +0000 Subject: Ooops, one line should have been removed in previous commit. Plus: don't convert tab to spaces on otherwise unchanged lines --- generic/ttk/ttkEntry.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c index 05d861d..f6a9c27 100644 --- a/generic/ttk/ttkEntry.c +++ b/generic/ttk/ttkEntry.c @@ -1245,7 +1245,7 @@ static void EntryDisplay(void *clientData, Drawable d) */ if (showCursor) { Ttk_Box field = Ttk_ClientRegion(entryPtr->core.layout, "field"); - int cursorX = EntryCharPosition(entryPtr, entryPtr->entry.insertPos), + int cursorX = EntryCharPosition(entryPtr, entryPtr->entry.insertPos), cursorY = entryPtr->entry.layoutY, cursorHeight = entryPtr->entry.layoutHeight, cursorWidth = 1; @@ -1268,7 +1268,6 @@ static void EntryDisplay(void *clientData, Drawable d) gc = EntryGetGC(entryPtr, es.insertColorObj, None); XFillRectangle(Tk_Display(tkwin), d, gc, cursorX, cursorY, cursorWidth, cursorHeight); - XSetClipMask(Tk_Display(tkwin), gc, None); Tk_FreeGC(Tk_Display(tkwin), gc); } -- cgit v0.12