From 5177e42bca3a1a3c86a9b1a8d369d0bd220cf504 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 6 Dec 2017 23:51:39 +0100 Subject: Update comment to reference proper character The unicode character comment has been updated to correctly reference the character instead of commenting on the variable that might be that character. --- font/src/lib.rs | 1 + src/term/mod.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/font/src/lib.rs b/font/src/lib.rs index d22746d3..2079d04b 100644 --- a/font/src/lib.rs +++ b/font/src/lib.rs @@ -60,6 +60,7 @@ pub use darwin::*; /// Character used for the underline cursor #[cfg(not(target_os = "macos"))] +// This is part of the private use area and should not conflict with any font pub const UNDERLINE_CURSOR_CHAR: char = '􊏢'; #[cfg(target_os = "macos")] pub const UNDERLINE_CURSOR_CHAR: char = '▁'; diff --git a/src/term/mod.rs b/src/term/mod.rs index 1fbe4d8e..2e1365fb 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -208,7 +208,6 @@ impl<'a> RenderableCellsIter<'a> { }); let cursor_color = self.text_cursor_color(&cursor_cell); - // This is part of the private use area and shouldn't be used by any font cursor_cell.c = font::UNDERLINE_CURSOR_CHAR; cursor_cell.fg = cursor_color; self.cursor_cells.push_back(Indexed { -- cgit