|
|
|
|
@ -716,7 +716,6 @@ paste_text :: proc(file: ^FileBuffer, text: string) {
|
|
|
|
|
|
|
|
|
|
move_cursor_up :: proc(file: ^FileBuffer) {
|
|
|
|
|
// For wrapped text, we need to handle cursor movement differently
|
|
|
|
|
// This is a simplified version - you may want to enhance it further
|
|
|
|
|
if file.cursor_pos > 0 {
|
|
|
|
|
// Find the previous newline
|
|
|
|
|
for i := file.cursor_pos - 1; i >= 0; i -= 1 {
|
|
|
|
|
@ -744,7 +743,6 @@ move_cursor_up :: proc(file: ^FileBuffer) {
|
|
|
|
|
|
|
|
|
|
move_cursor_down :: proc(file: ^FileBuffer) {
|
|
|
|
|
// For wrapped text, we need to handle cursor movement differently
|
|
|
|
|
// This is a simplified version - you may want to enhance it further
|
|
|
|
|
if file.cursor_pos < len(file.content) {
|
|
|
|
|
// Find the current line start
|
|
|
|
|
current_line_start := 0
|
|
|
|
|
|