Compare commits
No commits in common. "f958aa30394cde03e21cfbe16ef677bc09abe24b" and "8903ca86b1ffe767e75c48f6ef08fde8341cd523" have entirely different histories.
f958aa3039
...
8903ca86b1
3 changed files with 2 additions and 4 deletions
|
|
@ -538,7 +538,7 @@ const Node = union(enum) {
|
||||||
const ctx = @as(*@This(), @ptrCast(@alignCast(ctx_)));
|
const ctx = @as(*@This(), @ptrCast(@alignCast(ctx_)));
|
||||||
ctx.at = egc;
|
ctx.at = egc;
|
||||||
ctx.wcwidth = wcwidth;
|
ctx.wcwidth = wcwidth;
|
||||||
if (wcwidth > 0 and (ctx.col == 0 or egc[0] == '\n' or ctx.col < wcwidth))
|
if (ctx.col == 0 or egc[0] == '\n' or ctx.col < wcwidth)
|
||||||
return Walker.stop;
|
return Walker.stop;
|
||||||
ctx.col -= wcwidth;
|
ctx.col -= wcwidth;
|
||||||
return Walker.keep_walking;
|
return Walker.keep_walking;
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,6 @@
|
||||||
"select": {
|
"select": {
|
||||||
"name": "SELECT",
|
"name": "SELECT",
|
||||||
"inherit": "normal",
|
"inherit": "normal",
|
||||||
"cursor": "block",
|
|
||||||
"press": [
|
"press": [
|
||||||
["left", "select_left"],
|
["left", "select_left"],
|
||||||
["right", "select_right"],
|
["right", "select_right"],
|
||||||
|
|
|
||||||
|
|
@ -1455,8 +1455,7 @@ fn set_terminal_style(self: *Self) void {
|
||||||
|
|
||||||
pub fn get_cursor_shape() renderer.CursorShape {
|
pub fn get_cursor_shape() renderer.CursorShape {
|
||||||
const self = current();
|
const self = current();
|
||||||
const shape_ = if (self.input_mode_) |mode| mode.cursor_shape orelse self.default_cursor else self.default_cursor;
|
const shape = if (self.input_mode_) |mode| mode.cursor_shape orelse self.default_cursor else self.default_cursor;
|
||||||
const shape = if (self.rdr_.vx.caps.multi_cursor and shape_ == .default) .beam_blink else shape_;
|
|
||||||
return switch (shape) {
|
return switch (shape) {
|
||||||
.default => .default,
|
.default => .default,
|
||||||
.block_blink => .block_blink,
|
.block_blink => .block_blink,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue