|
|
@ -28,6 +28,9 @@ impl NcCell {
|
|
|
|
pub fn from_char(ch: char, plane: &mut NcPlane) -> Self {
|
|
|
|
pub fn from_char(ch: char, plane: &mut NcPlane) -> Self {
|
|
|
|
let mut cell = Self::new();
|
|
|
|
let mut cell = Self::new();
|
|
|
|
let result = unsafe { nccell_load(plane, &mut cell, cstring![ch.to_string()]) };
|
|
|
|
let result = unsafe { nccell_load(plane, &mut cell, cstring![ch.to_string()]) };
|
|
|
|
|
|
|
|
// TEMP solution for:
|
|
|
|
|
|
|
|
// https://github.com/dankamongmen/notcurses/pull/1937/checks?check_run_id=3093152924#step:11:339
|
|
|
|
|
|
|
|
#[cfg(not(target_os = "macos"))]
|
|
|
|
debug_assert_ne![NCRESULT_ERR, result];
|
|
|
|
debug_assert_ne![NCRESULT_ERR, result];
|
|
|
|
cell
|
|
|
|
cell
|
|
|
|
}
|
|
|
|
}
|
|
|
|